@abtnode/blocklet-services 1.16.37-beta-20250102-115729-ae7f327e → 1.16.37-beta-20250104-120451-e4049aeb
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/socket/channel/did.js +4 -3
- package/dist/assets/{Add-DoWwr2Ul.js → Add-B3vUgBj_.js} +1 -1
- package/dist/assets/{Alert-W6ZoTZ3g.js → Alert-BeI3TGsH.js} +1 -1
- package/dist/assets/{ArrowDropDown-DQkl2nkF.js → ArrowDropDown-BDen6kv8.js} +1 -1
- package/dist/assets/{Autocomplete-D-KX7tlO.js → Autocomplete-B9XdXNLV.js} +1 -1
- package/dist/assets/{Avatar-hKVZimRi.js → Avatar-VP6VjO6F.js} +1 -1
- package/dist/assets/{ButtonGroup-3SFP3-pq.js → ButtonGroup-BQ3t8F0M.js} +1 -1
- package/dist/assets/{CSSTransition-VHrj2IrJ.js → CSSTransition-CAyI_Voi.js} +1 -1
- package/dist/assets/{CheckCircle-BDJMl1SC.js → CheckCircle-C2NNCmBl.js} +1 -1
- package/dist/assets/{ChevronLeft-B-NWC0xt.js → ChevronLeft-CnYlL3td.js} +1 -1
- package/dist/assets/{ChevronRight-Ddp2NEiN.js → ChevronRight-CW0I-au3.js} +1 -1
- package/dist/assets/{Clear-De-d2EF8.js → Clear-CJ32w-ta.js} +1 -1
- package/dist/assets/{CloseOutlined-BctPwMsA.js → CloseOutlined-sL5HP2JB.js} +1 -1
- package/dist/assets/{Delete-3M81lrPw.js → Delete-Cw0XHQbI.js} +1 -1
- package/dist/assets/{DeleteOutline-ANDKP8NK.js → DeleteOutline-CNDiVs89.js} +1 -1
- package/dist/assets/{DialogContentText-Dn5BO5iN.js → DialogContentText-CEsqdDWz.js} +1 -1
- package/dist/assets/{Done-Bhem2M06.js → Done-B1Id3HZ7.js} +1 -1
- package/dist/assets/{Download-BPmZzvvE.js → Download-5eyWxKFR.js} +1 -1
- package/dist/assets/{EditIcon-D33iMvFv.js → EditIcon-CyjMgREV.js} +1 -1
- package/dist/assets/{Error-BCA7Sqlp.js → Error-CUxzkNdG.js} +1 -1
- package/dist/assets/{ExpandMore-5qu10-VQ.js → ExpandMore-CLLcIz7v.js} +1 -1
- package/dist/assets/{FormControl-OqvyHuZv.js → FormControl-BXjjQ2Cl.js} +1 -1
- package/dist/assets/{FormControlLabel-DOOEGsWf.js → FormControlLabel-CRQiOFgY.js} +1 -1
- package/dist/assets/{FormGroup-CMuwdC56.js → FormGroup-CPYnhZEp.js} +1 -1
- package/dist/assets/{Google-BuyGXo_n.js → Google-BAgnJN1d.js} +1 -1
- package/dist/assets/{Grid-DtUfQ3Vj.js → Grid-vQ4in7aJ.js} +1 -1
- package/dist/assets/{HelpOutline-Bmrs_0Er.js → HelpOutline-CMsKsWc3.js} +1 -1
- package/dist/assets/{Hidden-CUtsI_97.js → Hidden-ideB0Yow.js} +1 -1
- package/dist/assets/{InfoOutlined-Cs_orBaQ.js → InfoOutlined-5WyW673W.js} +1 -1
- package/dist/assets/{InputAdornment-BEqTI4V4.js → InputAdornment-BYO2j_v5.js} +1 -1
- package/dist/assets/{LastPage-Bb4DD2DL.js → LastPage-CzXhZxbb.js} +1 -1
- package/dist/assets/{Launch-DHVfRKfR.js → Launch-DYv1e-sP.js} +1 -1
- package/dist/assets/{LaunchOutlined-Bb4OL7ma.js → LaunchOutlined-BxjL--pT.js} +1 -1
- package/dist/assets/{Link-DVsnc_O1.js → Link-BePn_RNM.js} +1 -1
- package/dist/assets/{ListItemButton-ChDufQ0D.js → ListItemButton-DFfqWy-t.js} +1 -1
- package/dist/assets/{ListSubheader-BH5XlJEK.js → ListSubheader-XVI0gGYq.js} +1 -1
- package/dist/assets/{LoadingButton-D11bbs7Z.js → LoadingButton-iTGCDYUz.js} +1 -1
- package/dist/assets/{LockIcon-Dxf0oSGl.js → LockIcon-Cj6s3Czr.js} +1 -1
- package/dist/assets/{Loop-CYBwfB9B.js → Loop-JyIa8s4d.js} +1 -1
- package/dist/assets/{Menu-BbykPAXR.js → Menu-C6kynm4m.js} +1 -1
- package/dist/assets/{MoreHoriz-XHayrhxr.js → MoreHoriz-Cj6hh2tu.js} +1 -1
- package/dist/assets/{MoreVert-BO-o5JnK.js → MoreVert-m5BY_p4K.js} +1 -1
- package/dist/assets/{OpenInNew-__JhP3_b.js → OpenInNew-CIsQ-VD4.js} +1 -1
- package/dist/assets/{OutlinedInput-DYGzdilY.js → OutlinedInput-B93_cuhJ.js} +2 -2
- package/dist/assets/{PlayArrow-l1xyNa8v.js → PlayArrow-CSCQWAOp.js} +1 -1
- package/dist/assets/{QuestionMarkCircle-CgS1lsZu.js → QuestionMarkCircle-Bgaj2WkC.js} +1 -1
- package/dist/assets/{RadioGroup-D2BrBv0W.js → RadioGroup-DPurewE-.js} +1 -1
- package/dist/assets/{Search-C-_AhyGc.js → Search-Cy_vXJXs.js} +1 -1
- package/dist/assets/{Select-DdaHDvk1.js → Select-BoIViWSN.js} +1 -1
- package/dist/assets/{ServerLogo-3sWhasNo.js → ServerLogo-C2FfSxkG.js} +1 -1
- package/dist/assets/{Stepper-AlrTJRkZ.js → Stepper-CDMW7dY4.js} +1 -1
- package/dist/assets/{TextField-F_rhcivt.js → TextField-apRN2NFH.js} +1 -1
- package/dist/assets/{Toolbar-NIQ6PygD.js → Toolbar-B0MDD2MX.js} +1 -1
- package/dist/assets/{ViewColumn-hY5ABDIE.js → ViewColumn-DLbcQUHz.js} +1 -1
- package/dist/assets/{ViewList-DTOCqN2q.js → ViewList-CYnd76EG.js} +1 -1
- package/dist/assets/{_createAggregator-C_N0DCeP.js → _createAggregator-jZ136RIi.js} +1 -1
- package/dist/assets/{access-control-4hTaCeVw.js → access-control-D_3Sf3DH.js} +1 -1
- package/dist/assets/{actions-x_23wAjB.js → actions-BEfqQHvh.js} +1 -1
- package/dist/assets/{add-component-core-ChNA1r63.js → add-component-core-8-K3kI62.js} +1 -1
- package/dist/assets/add-resource-BJc9d35J.js +1 -0
- package/dist/assets/{addon-Buee4n4q.js → addon-C2s3597J.js} +1 -1
- package/dist/assets/{analytics-BKlawrzh.js → analytics-__YzXiEy.js} +6 -6
- package/dist/assets/api-Du2npubO.js +1 -0
- package/dist/assets/{audit-logs-CZXS4N0R.js → audit-logs-DCsbxX3x.js} +2 -2
- package/dist/assets/{base32-CxcE4z8e.js → base32-CSHbjBse.js} +1 -1
- package/dist/assets/branding-D8ZABeVU.js +40 -0
- package/dist/assets/bundle-avatar-DjGcv6Sg.js +1 -0
- package/dist/assets/{button-Bk5F6Z8J.js → button-BpodnaUj.js} +1 -1
- package/dist/assets/{click-to-copy-BBJwL23k.js → click-to-copy-Ct4_CI1M.js} +1 -1
- package/dist/assets/{complete-zUtTPZWF.js → complete-CKV6Ebun.js} +4 -4
- package/dist/assets/{component-CkbTdshc.js → component-ChbClWUp.js} +1 -1
- package/dist/assets/{config-DS2yUOy5.js → config-BnBRy_w4.js} +1 -1
- package/dist/assets/{config-B1LTpJFT.js → config-C7arZYXl.js} +2 -2
- package/dist/assets/{config-navigation-CghjCkdz.js → config-navigation-CWPZjlHO.js} +3 -3
- package/dist/assets/{config-space-Bw1lK4NV.js → config-space-D4B-Fcx4.js} +1 -1
- package/dist/assets/{confirm-ULP5BJCc.js → confirm-CyScKRsz.js} +1 -1
- package/dist/assets/{connect-iIwcK5jn.js → connect-D50yPXAE.js} +1 -1
- package/dist/assets/{connect-B7eXSDIr.js → connect-DZgc6pEB.js} +1 -1
- package/dist/assets/{connect-to-AXzvKU6L.js → connect-to-Byo-gZWq.js} +3 -3
- package/dist/assets/{content-layout-ANaBTlDS.js → content-layout-B3qFdI6N.js} +1 -1
- package/dist/assets/{dashboard-DOZ7LRQI.js → dashboard-lB4ZPVoV.js} +3 -3
- package/dist/assets/{deprecate-Bo7yGTJO.js → deprecate-cv6v3EXd.js} +1 -1
- package/dist/assets/{did-address-DdPH8Oii.js → did-address-pHUGf5mt.js} +1 -1
- package/dist/assets/{domain-BPKUv94X.js → domain-UlRrTp1n.js} +2 -2
- package/dist/assets/{domain-list-Cc3vVMhj.js → domain-list-CKs3EKNU.js} +2 -2
- package/dist/assets/{email-RMPOCYzR.js → email-PtOk65dC.js} +3 -3
- package/dist/assets/emotion-cache.browser.esm-DuQlBwjm.js +1 -0
- package/dist/assets/{exchange-passport-BXag-hFz.js → exchange-passport-DdO1PoJN.js} +1 -1
- package/dist/assets/{fallback-C1u7ttF8.js → fallback-BMr0sE-j.js} +1 -1
- package/dist/assets/{form-text-input-CihqUkoN.js → form-text-input-C5wKQFKL.js} +2 -2
- package/dist/assets/{format-error-D2V1IlSA.js → format-error-CpEoP1rb.js} +1 -1
- package/dist/assets/{fuel-DYi3vbS8.js → fuel-DkDXKRe9.js} +1 -1
- package/dist/assets/{fullpage-DRR65bg5.js → fullpage-cRbvfPCn.js} +1 -1
- package/dist/assets/{get-safe-url-BRitJXVO.js → get-safe-url-6c6RI8XT.js} +1 -1
- package/dist/assets/{get-safe-url-V1nDCXmu.js → get-safe-url-CwEZKvfc.js} +1 -1
- package/dist/assets/{home-DvWIY2vO.js → home-D29pIqLK.js} +1 -1
- package/dist/assets/{iframe-BgHkFTAs.js → iframe-BFiRQ7tw.js} +1 -1
- package/dist/assets/{index-BrmO4-ZK.js → index-72Zql8CQ.js} +1 -1
- package/dist/assets/{index-CyUo44rA.js → index-B27mVEab.js} +1 -1
- package/dist/assets/{index-2qT6Nx8y.js → index-B3dU1BRu.js} +1 -1
- package/dist/assets/{index-hcmgeyWk.js → index-B6PbP50h.js} +1 -1
- package/dist/assets/{index-TosM5wPB.js → index-BUN78vRQ.js} +1 -1
- package/dist/assets/{index-BSHm8cVk.js → index-BXoHPu8T.js} +2 -2
- package/dist/assets/{index-Bk2jPh4B.js → index-BcaFN_aP.js} +1 -1
- package/dist/assets/{index-CORQxWB5.js → index-Bgv4pLgc.js} +3 -3
- package/dist/assets/{index-DF3kd1Sh.js → index-BhxTb2Rs.js} +1 -1
- package/dist/assets/{index-6R7fU17e.js → index-Bo3ifRfa.js} +1 -1
- package/dist/assets/{index-Q-uhDp8D.js → index-BqLf0w23.js} +8 -8
- package/dist/assets/{index-Tzm7gzea.js → index-C0UJXtze.js} +1 -1
- package/dist/assets/{index-Cv5S4z7J.js → index-C3YL4xGi.js} +1 -1
- package/dist/assets/index-CH1qAD3K.js +129 -0
- package/dist/assets/index-CMbz2eu6.js +11 -0
- package/dist/assets/{index-BHTgfI3J.js → index-CUdjeFH3.js} +4 -4
- package/dist/assets/index-C_mXaY4E.js +1 -0
- package/dist/assets/{index-BZXNfshl.js → index-Cbi6kl34.js} +1 -1
- package/dist/assets/{index-BFWnlhoS.js → index-Cg_T1V-P.js} +2 -2
- package/dist/assets/{index-Bu_gkGlR.js → index-ChhcKroJ.js} +1 -1
- package/dist/assets/{index-BDf4kEgE.js → index-CqfW2FZt.js} +1 -1
- package/dist/assets/{index-DesHTrdZ.js → index-CqnrpD4d.js} +7 -7
- package/dist/assets/{index-vYhCTuA2.js → index-CtQolg_s.js} +1 -1
- package/dist/assets/{index-CUC8utCb.js → index-D8zCBBsy.js} +1 -1
- package/dist/assets/{index-BuDChzu6.js → index-DSX7jfl3.js} +1 -1
- package/dist/assets/{index-fZw7Vpgz.js → index-DgoHglX6.js} +1 -1
- package/dist/assets/{index-Dz6UVrgJ.js → index-Dim9am4F.js} +37 -37
- package/dist/assets/{index-C16yDs-W.js → index-DvwEbnCV.js} +1 -1
- package/dist/assets/{index-DUI49Z8_.js → index-Gze7IkP6.js} +1 -1
- package/dist/assets/{index-yHuDMvJG.js → index-I-TxeVFM.js} +1 -1
- package/dist/assets/{index-D-H65z2j.js → index-ZSNG3xSj.js} +2 -2
- package/dist/assets/{index-B0lK7ost.js → index-q27UQsWn.js} +2 -2
- package/dist/assets/{index-DC_6kAED.js → index-q2_9XHCb.js} +1 -1
- package/dist/assets/{index-uWCiD0vp.js → index-xuTvwkle.js} +13 -13
- package/dist/assets/{invitation-CEnhUxqR.js → invitation-CI9oI0ML.js} +1 -1
- package/dist/assets/{invite-Djgak5cM.js → invite-BD1LrTA8.js} +1 -1
- package/dist/assets/{isEmail-CVqVoLMc.js → isEmail-BCMyh8vZ.js} +1 -1
- package/dist/assets/{issue-passport-OTW1CE4-.js → issue-passport-Bd-T51oN.js} +1 -1
- package/dist/assets/{item-DuOVC0zG.js → item-CvCwtq6F.js} +1 -1
- package/dist/assets/{jss-plugin-props-sort.esm-C1sdxDXq.js → jss-plugin-props-sort.esm-KqvaA55X.js} +1 -1
- package/dist/assets/{launch-result-message-KFpSWl3O.js → launch-result-message-BelGEFPb.js} +1 -1
- package/dist/assets/{layout-qVa0Azu2.js → layout-CqjS3RFh.js} +1 -1
- package/dist/assets/{list-header-BEzk1po8.js → list-header-DVNuHNDo.js} +1 -1
- package/dist/assets/localization-Dutgz4tx.js +1 -0
- package/dist/assets/{log-Bq3RbJRi.js → log-C-mcb3Rv.js} +1 -1
- package/dist/assets/{login-C3EevTE0.js → login-8AhFtIOc.js} +1 -1
- package/dist/assets/{login-oauth-callback-AOtjEuqk.js → login-oauth-callback-CsFM0yAZ.js} +1 -1
- package/dist/assets/{logo-uploader-BFKU96PE.js → logo-uploader-DabQD2dA.js} +3 -3
- package/dist/assets/{lost-passport-Iq98nbcM.js → lost-passport-CxN1g858.js} +3 -3
- package/dist/assets/{lottie-react.esm-C3V68SQT.js → lottie-react.esm-BpyUyTL6.js} +1 -1
- package/dist/assets/{open-window-lc2oKdlW.js → open-window-Banfzs4p.js} +1 -1
- package/dist/assets/overview-DcAEoK9V.js +12 -0
- package/dist/assets/{page-header-DjhLNLyP.js → page-header-cgpPCMon.js} +1 -1
- package/dist/assets/{permission-BZvOkDQF.js → permission-WZrPwf2m.js} +1 -1
- package/dist/assets/preferences-Ca7-Ov6u.js +1 -0
- package/dist/assets/publish-resource-DZ4bcjeq.js +1 -0
- package/dist/assets/{raf-schd.esm-Bwmb5y9p.js → raf-schd.esm-CAeD1GPF.js} +1 -1
- package/dist/assets/{react-beautiful-dnd.esm-X7VVnJcV.js → react-beautiful-dnd.esm-C5fDIc0r.js} +4 -4
- package/dist/assets/refType-Cd6nIb--.js +1 -0
- package/dist/assets/relative-time-DDo7Crj5.js +1 -0
- package/dist/assets/{resource-dialog-BgQL1Bby.js → resource-dialog-CrGsGXEE.js} +1 -1
- package/dist/assets/sdk-BTNAvCf8.js +1 -0
- package/dist/assets/selector-Br9-dR9y.js +48 -0
- package/dist/assets/session-BB2DljXy.js +1 -0
- package/dist/assets/{setup-CIZIzYOP.js → setup-Cv1zGHfT.js} +3 -3
- package/dist/assets/{shorten-label-CfxSH4kN.js → shorten-label-DT9X1B8w.js} +1 -1
- package/dist/assets/{simple-select-BP_h5NOM.js → simple-select-BAxNgpxE.js} +1 -1
- package/dist/assets/{slicedToArray-WKq_kWhB.js → slicedToArray-DyRQzefY.js} +2 -2
- package/dist/assets/{start-Ceyr0Slk.js → start-C7dSefgZ.js} +1 -1
- package/dist/assets/{step-actions-BKTyBqOr.js → step-actions-oy5A5R40.js} +1 -1
- package/dist/assets/{studio-wrdTUHb8.js → studio-Boj6f6bS.js} +1 -1
- package/dist/assets/{switch-control-Bhky7auW.js → switch-control-ChW_GuaN.js} +1 -1
- package/dist/assets/{toUpper-zlUBufNw.js → toUpper-DXbBjpP8.js} +1 -1
- package/dist/assets/{transfer-Bs21EL8V.js → transfer-CwhoFyG0.js} +1 -1
- package/dist/assets/{trim-Ci8FKlWl.js → trim-D79XRDvY.js} +1 -1
- package/dist/assets/{uniqBy-DX0iyhMx.js → uniqBy-BBGY8CA1.js} +1 -1
- package/dist/assets/{unsubscribe-C74g_s8L.js → unsubscribe-BlsNq4VD.js} +1 -1
- package/dist/assets/{url-join-GUOMgSK4.js → url-join-DILCgsel.js} +1 -1
- package/dist/assets/{use-mobile-QzoRHUEw.js → use-mobile-B3qubz56.js} +1 -1
- package/dist/assets/{use-mobile-C8gQQg5h.js → use-mobile-D8jiOBBW.js} +1 -1
- package/dist/assets/{useAsync-CA1s-Q3Q.js → useAsync-CwWuQ31n.js} +1 -1
- package/dist/assets/{useAsyncRetry-CC8wuBBZ.js → useAsyncRetry-o3huFKOY.js} +1 -1
- package/dist/assets/{useFormControl--BH_DJ53.js → useFormControl-Bm0BZQS7.js} +1 -1
- package/dist/assets/{useLocalStorage-CvimZx-D.js → useLocalStorage-DdNsoUmT.js} +1 -1
- package/dist/assets/{useSetState-BYl9GHuD.js → useSetState-DuK5mvRn.js} +1 -1
- package/dist/assets/useSlot-RdBOCJrx.js +1 -0
- package/dist/assets/{useThemeProps-CKP9Y0ID.js → useThemeProps-Bmm6xEda.js} +1 -1
- package/dist/assets/user-center-6IaKm8kc.js +201 -0
- package/dist/assets/{util-DKzAB6dy.js → util-CZ4Gnuni.js} +1 -1
- package/dist/assets/{wrap-locale-CmUR3sB1.js → wrap-locale-DKHVNdE9.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +23 -23
- package/dist/assets/add-resource-Cn0pNFEC.js +0 -1
- package/dist/assets/api-CSS3RGWL.js +0 -1
- package/dist/assets/branding-C1OjV7l2.js +0 -40
- package/dist/assets/bundle-avatar-O5LAhLys.js +0 -1
- package/dist/assets/emotion-cache.browser.esm-XJ-XPpML.js +0 -1
- package/dist/assets/index-Bof7se0O.js +0 -129
- package/dist/assets/index-D2DRxJlW.js +0 -1
- package/dist/assets/index-cTQLMlpc.js +0 -11
- package/dist/assets/localization-CSEYhUZ2.js +0 -1
- package/dist/assets/overview-DzTYyyOK.js +0 -12
- package/dist/assets/preferences-C93eFPAg.js +0 -1
- package/dist/assets/publish-resource-X3eI0niL.js +0 -1
- package/dist/assets/refType-CEDeXbgm.js +0 -1
- package/dist/assets/relative-time-CTnNqlzz.js +0 -1
- package/dist/assets/sdk-DOHTCfK1.js +0 -1
- package/dist/assets/selector-C2hu0WUk.js +0 -48
- package/dist/assets/session-B2D3crc6.js +0 -1
- package/dist/assets/useSlot-B-WSi9Gx.js +0 -1
- package/dist/assets/user-center-D4cWW8SV.js +0 -334
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$ as c,r as _,l as f,ch as S,ci as r}from"./index-BHTgfI3J.js";var d=function(n){var a=c(_.useState(n),2),u=a[0],i=a[1],o=f(function(t){i(function(e){var s=S(t)?t(e):t;return s?r(r({},e),s):e})});return[u,o]};export{d as u};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import{P as l,r as c,j as n,B as h,ba as A,a6 as G,dc as H,fw as U,ae as Y,aI as L,n as J,d2 as Q,ea as Z,a4 as v}from"./index-BHTgfI3J.js";import{d as ee}from"./Done-Bhem2M06.js";import{C as te}from"./Google-BuyGXo_n.js";import{T as ne}from"./TextField-F_rhcivt.js";import{R as re,F as oe,L as se}from"./logo-uploader-BFKU96PE.js";const N={description:l.string,editing:l.bool,onChange:l.func,required:l.bool,value:l.any,componentProps:l.object,render:l.func,renderFormItem:l.func};function S({editing:o,value:r,onChange:a}){const[d,u]=c.useState(!1),m=c.useRef(),p=c.useRef(r);c.useEffect(()=>{let s=null;return o&&(s=setTimeout(()=>{u(!0)},50)),()=>{clearTimeout(s)}},[o]);const C=s=>{p.current=s,a(s)},b=()=>{u(!1),a(p.current)},I=n.jsx(h,{className:"form-item-input slot",px:1,children:n.jsxs(h,{display:"flex",alignItems:"center",children:[r,r!=="auto"&&n.jsx("div",{style:{marginLeft:4,backgroundColor:r,width:"1em",height:"1em",borderRadius:"0.2em"}})]})}),f=n.jsxs(h,{display:"flex",flexGrow:1,alignItems:"center",height:"40px",onKeyDown:b,children:[n.jsx(h,{display:"flex",alignItems:"center",onClick:()=>u(!0),children:n.jsx("div",{ref:m,style:{flexShrink:0,marginLeft:"8px",backgroundColor:r,width:"32px",height:"32px",boxSizing:"border-box",borderRadius:"8px",border:"1px solid #eee",cursor:r==="auto"?"default":"pointer"}})}),n.jsx(A,{open:d,anchorEl:m.current,onClose:()=>u(!1),anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:n.jsx(te,{color:r,onChange:s=>C(s.hex)})})]});return o?f:I}S.propTypes=N;function T({editing:o,description:r,value:a,onChange:d,componentProps:u,...m}){const{placeholder:p}=u,C=c.useRef(a),{t:b}=c.useContext(G),I=s=>{s.key==="Enter"&&d(C.current,"confirm")},f=s=>{C.current=s,d(s)};return o?n.jsx(ne,{style:{flex:1},fullWidth:!0,value:a,onChange:s=>{s.persist(),f(s.target.value)},autoFocus:!0,size:"small",variant:"outlined",placeholder:r||p,onKeyDown:I,...m}):n.jsx(h,{px:1,className:"form-item-input slot",children:a||n.jsx("span",{className:"placeholder",children:b("common.requiredInputPlaceholder",{name:r||p})})})}T.propTypes=N;T.defaultProps={componentProps:{}};function V({editing:o,value:r,onChange:a,componentProps:d,...u}){const{blocklet:m}=d,p=r==="auto"?H.getPassportColorFromDid(m.appDid):r;return n.jsxs(h,{display:"flex",alignItems:"center",children:[n.jsx("div",{style:{width:96,marginRight:12},dangerouslySetInnerHTML:{__html:U({title:"Owner",issuer:Y.getDisplayName(m),issuerDid:m.appDid,ownerName:"Your Name",ownerDid:m.appDid,preferredColor:r||"auto"})}}),n.jsx(S,{...u,editing:o,value:o?p:r,onChange:a,componentProps:d})]})}V.propTypes={...N,componentProps:l.shape({blocklet:l.object.isRequired}).isRequired};V.defaultProps={};const ie=Z`
|
|
2
|
-
0%, 100% {
|
|
3
|
-
transform: scale(1) translateX(0);
|
|
4
|
-
}
|
|
5
|
-
50% {
|
|
6
|
-
transform: scale(1.05) translateX(-3px);
|
|
7
|
-
}
|
|
8
|
-
25%, 75% {
|
|
9
|
-
transform: scale(1.1) translateX(3px);
|
|
10
|
-
}
|
|
11
|
-
`,ae={input:T,color:S,passport:V,uploader:o=>n.jsx(se,{...o.componentProps})};function le(o,{editing:r=!1}){const{componentType:a="input",render:d,renderFormItem:u}=o;return r&&u?u:!r&&d?d:ae[a==null?void 0:a.toLowerCase()]}function O({schema:o,loading:r,value:a,defaultValue:d,onChange:u,style:m,disabled:p}){const C=Object.prototype.toString.call(a)==="[object Object]",[b,I]=c.useState([]),[f,s]=c.useState(C?a:d),_=c.useMemo(()=>o.length===1,[o]),g=c.useCallback(e=>b.find(t=>t.key===e),[b]);c.useEffect(()=>{var e;_&&((e=o[0])!=null&&e.required)&&I([{key:o[0].key,editing:!0}])},[o,_]);const P=c.useCallback(e=>{I(t=>t.find(i=>i.key===e.key)?t.map(i=>i.key===e.key?e:{...i}):[e].concat(t))},[]),w=c.useCallback((e,t,x)=>{const{key:i,secure:R}=e,y=g(i)??{...e};y.editing=!0;const j=f[i]!==t;y.edited=t&&y.initialValue!==t,y.initialValue=d[i];const k={...f,[i]:t};j&&s(k),u({[i]:t},{allValues:k,action:x,currentItem:e}),x==="confirm"&&R&&s({...f,[i]:"__encrypted__"}),x==="confirm"&&(y.initialValue=f[i]),["confirm","cancel"].includes(x)&&(y.editing=!1,y.edited=!1),P(y)},[d,f,u,P,g]);function z(e,{editing:t=!1}){const{key:x}=e,i=C?a[x]:f[x];return i==="__encrypted__"?t?"":"******":i}const F=c.useCallback(e=>{const t=g(e.key);t&&w(e,t.initialValue,"cancel")},[g,w]),D=c.useCallback(e=>{const t=g(e.key);!t||!t.edited||(t.shaking=!0,P(t),setTimeout(()=>{t.shaking=!1,P(t)},500))},[g,P]),K=c.useCallback(e=>{const t=g(e.key);!t||!t.edited?F(e):D(e)},[g,D,F]);return n.jsx(ce,{className:"form",style:m,children:o==null?void 0:o.map(e=>{const{key:t,description:x,required:i,solo:R=!1,hidden:y=!1,componentProps:q={}}=e;if(y)return null;const j=g(t),{editing:k,shaking:B}=j??{},E=z(e,{editing:k}),M=le(e,{editing:k}),W={inputProps:{"data-cy":"schema-form-item-component"},key:t,description:x,editing:k,value:E,onChange:(X,$="change")=>w(e,X,$),componentProps:q,onBlur:()=>K(e)};return n.jsxs(h,{className:"form-item",children:[!R&&n.jsxs(h,{className:"form-item-label",style:{color:i&&!E?"#ff0000":"#333"},children:[x,i&&n.jsx(re,{})]}),n.jsxs(h,{className:"form-item-body",children:[n.jsx(h,{className:"form-item-input","data-cy":"schema-form-item-edit",sx:{textAlign:R?"center":"left"},style:{cursor:"text"},onClick:()=>{p||j!=null&&j.edited||w(e,f[t],"edit")},children:n.jsx(M,{...W})}),!R&&n.jsx(h,{className:"form-item-action",style:{marginLeft:0},children:k?n.jsxs(n.Fragment,{children:[j.edited?n.jsx(L,{"data-cy":"schema-form-item-confirm",onClick:()=>{w(e,E,"confirm")},disabled:p||r,sx:{animation:B?`${ie} 0.5s linear`:"none"},style:{paddingRight:4},size:"large",children:r?n.jsx(J,{size:24}):n.jsx(ee,{})}):null,n.jsx(L,{"data-cy":"schema-form-item-cancel",onClick:()=>F(e),style:{paddingLeft:j.edited?4:8},disabled:p||r,size:"large",children:n.jsx(Q,{})})]}):null})]})]},t)})})}O.propTypes={schema:l.array.isRequired,loading:l.bool,onChange:l.func.isRequired,value:l.object,defaultValue:l.object,style:l.object,disabled:l.bool};O.defaultProps={loading:!1,value:void 0,defaultValue:{},style:{},disabled:!1};const ce=v(oe)``;export{O as S};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-BHTgfI3J.js";import{S as t}from"./studio-wrdTUHb8.js";import"./index-DC_6kAED.js";import"./Menu-BbykPAXR.js";import"./Toolbar-NIQ6PygD.js";import"./Hidden-CUtsI_97.js";import"./fallback-C1u7ttF8.js";import"./Alert-W6ZoTZ3g.js";import"./useSlot-B-WSi9Gx.js";function d(){return o.jsx(t,{children:"Coming soon..."})}export{d as default};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{u as k,aK as D,r as A,aQ as b,j as e,B as T,a as S,a7 as B,cj as j,ae as C,be as L,aC as N,al as P,a4 as Q,T as E}from"./index-BHTgfI3J.js";import{d as K}from"./HelpOutline-Bmrs_0Er.js";import{K as R}from"./keyboard-arrow-down-rounded-DadBVmpO.js";import{I as q}from"./index-BZXNfshl.js";import{T as W}from"./index-C16yDs-W.js";import{W as i}from"./did-address-DdPH8Oii.js";import{B as _}from"./dashboard-DOZ7LRQI.js";import{a as z}from"./domain-list-Cc3vVMhj.js";import"./Link-DVsnc_O1.js";import"./index-TosM5wPB.js";import"./useLocalStorage-CvimZx-D.js";import"./MoreVert-BO-o5JnK.js";import"./index-Bk2jPh4B.js";import"./confirm-ULP5BJCc.js";import"./DialogContentText-Dn5BO5iN.js";import"./Alert-W6ZoTZ3g.js";import"./useSlot-B-WSi9Gx.js";import"./format-error-D2V1IlSA.js";import"./Delete-3M81lrPw.js";import"./PlayArrow-l1xyNa8v.js";import"./get-safe-url-V1nDCXmu.js";import"./ButtonGroup-3SFP3-pq.js";import"./RadioGroup-D2BrBv0W.js";import"./FormControlLabel-DOOEGsWf.js";import"./useFormControl--BH_DJ53.js";import"./FormGroup-CMuwdC56.js";import"./index-6R7fU17e.js";import"./Avatar-hKVZimRi.js";import"./session-B2D3crc6.js";import"./useAsyncRetry-CC8wuBBZ.js";import"./useAsync-CA1s-Q3Q.js";import"./useSetState-BYl9GHuD.js";import"./fallback-C1u7ttF8.js";import"./index-DC_6kAED.js";import"./Menu-BbykPAXR.js";import"./Toolbar-NIQ6PygD.js";import"./Hidden-CUtsI_97.js";import"./index-D-H65z2j.js";import"./ListItemButton-ChDufQ0D.js";import"./selector-C2hu0WUk.js";import"./deprecate-Bo7yGTJO.js";import"./index-D2DRxJlW.js";import"./trim-Ci8FKlWl.js";import"./Add-DoWwr2Ul.js";import"./ExpandMore-5qu10-VQ.js";import"./base32-CxcE4z8e.js";import"./LockIcon-Dxf0oSGl.js";import"./index-Bu_gkGlR.js";import"./CheckCircle-BDJMl1SC.js";import"./util-DKzAB6dy.js";import"./permission-BZvOkDQF.js";import"./use-mobile-C8gQQg5h.js";import"./InfoOutlined-Cs_orBaQ.js";import"./index-hcmgeyWk.js";import"./api-CSS3RGWL.js";import"./TextField-F_rhcivt.js";import"./FormControl-OqvyHuZv.js";import"./utils-DoM3o7-Q.js";import"./Select-DdaHDvk1.js";import"./OutlinedInput-DYGzdilY.js";import"./LoadingButton-D11bbs7Z.js";import"./useThemeProps-CKP9Y0ID.js";import"./actions-x_23wAjB.js";import"./MoreHoriz-XHayrhxr.js";const H={width:24,height:24,body:'<path fill="currentColor" d="m12 10.8l-3.9 3.9q-.275.275-.7.275t-.7-.275q-.275-.275-.275-.7t.275-.7l4.6-4.6q.3-.3.7-.3t.7.3l4.6 4.6q.275.275.275.7t-.275.7q-.275.275-.7.275t-.7-.275L12 10.8Z"/>'},O=H,$={arcblock:"ArcBlock",ethereum:"Ethereum"};function F(){var u,h,x,f,v;const{t,locale:w}=k(),{info:p,inService:g}=D(),[n,y]=A.useState(!1),{blocklet:o}=b(),{appDid:m,appPid:l,migratedFrom:r=[]}=o,c=(u=o.environments.find(s=>s.key==="BLOCKLET_APP_CHAIN_TYPE"))==null?void 0:u.value,d=[m?{name:t("blocklet.appId"),value:e.jsx(i,{did:m,showQrcode:!0})}:null,l&&m!==l?{name:e.jsxs(T,{sx:{display:"flex",alignItems:"center",gap:1},children:[t("blocklet.appPid"),e.jsx(S,{title:t("blocklet.whyNeedAppPid"),style:{cursor:"help",fontSize:16},children:e.jsx(K,{})})]}),value:e.jsx(i,{did:l,showQrcode:!0})}:null,(r==null?void 0:r.length)>1?{name:t("blocklet.alsoKnownAs"),value:e.jsxs("div",{children:[(n?r.slice(1):r.slice(1,2)).map(s=>e.jsx(i,{did:s.appDid,showQrcode:!0})),r.length>2&&e.jsx(B,{style:{marginLeft:"18px"},endIcon:n?e.jsx(j,{icon:O}):e.jsx(j,{icon:R}),onClick:()=>y(!n),children:t(n?"common.collapseAll":"blocklet.router.showAllDIDs")})]})}:null,{name:t("common.name"),value:C.getDisplayName(o,!0)},{name:t("common.status"),value:e.jsx(_,{status:o.status,source:o.source,progress:o.progress})},L(o)?{name:"NFT",value:e.jsx(i,{external:!0,href:N((h=o==null?void 0:o.controller)==null?void 0:h.chainHost,(x=o==null?void 0:o.controller)==null?void 0:x.nftId,"asset"),did:(f=o==null?void 0:o.controller)==null?void 0:f.nftId,showQrcode:!0})}:null,{name:t("blocklet.installedAt"),value:P(o.installedAt,w)},{name:t("common.owner"),value:(v=o.settings)!=null&&v.owner?e.jsx(i,{did:o.settings.owner.did,showQrcode:!0}):"-"},{name:t("blocklet.config.walletType.name"),value:$[c||"arcblock"]||c},o.externalSkSource?{name:t("blocklet.skSource"),value:o.externalSkSource}:null].filter(Boolean);g&&d.push({name:t("common.serverDid"),value:e.jsx(i,{did:p.did,showQrcode:!0})},{name:t("common.serverVersion"),value:e.jsx(W,{children:p.version})});const I=s=>s.map(a=>e.jsx(q,{style:{display:"flex",alignItems:"flex-start"},valueComponent:"div",nameWidth:120,name:a.name,nameFormatter:()=>a.name,children:a.value},a.name));return e.jsxs(U,{component:"div",children:[e.jsx(z,{}),e.jsx("div",{className:"title",children:e.jsx("span",{children:t("common.basicInfo")})}),e.jsx("div",{className:"basicInfo",children:I(d)})]})}F.propTypes={};const U=Q(E)`
|
|
2
|
-
.title {
|
|
3
|
-
font-size: 1.2rem;
|
|
4
|
-
font-weight: bold;
|
|
5
|
-
margin-top: ${t=>t.theme.spacing(5)};
|
|
6
|
-
margin-bottom: ${t=>t.theme.spacing(3)};
|
|
7
|
-
|
|
8
|
-
&.first {
|
|
9
|
-
margin-top: 0;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
`;export{F as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as o,j as t,L as e}from"./index-BHTgfI3J.js";import{I as s}from"./iframe-BgHkFTAs.js";import{S as n}from"./studio-wrdTUHb8.js";import"./index-DC_6kAED.js";import"./Menu-BbykPAXR.js";import"./Toolbar-NIQ6PygD.js";import"./Hidden-CUtsI_97.js";import"./fallback-C1u7ttF8.js";import"./Alert-W6ZoTZ3g.js";import"./useSlot-B-WSi9Gx.js";function L(){const r=new URLSearchParams;r.set("title","Preference Builder"),r.set("schemaKey",o(window.location.origin,e.WELLKNOWN_SERVICE_PATH_PREFIX,"/api/studio/preferences"));const i=`${o(window.location.origin,e.WELLKNOWN_SERVICE_PATH_PREFIX,"/hosted/form-builder/")}?${r.toString()}`;return t.jsx(n,{children:t.jsx(s,{url:i,width:"100%",height:"100%",frameBorder:0,styles:{border:0}})})}export{L as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{u as n,bk as l,a5 as d,r as c,j as i,aA as u,B as h}from"./index-BHTgfI3J.js";import g from"./index-Q-uhDp8D.js";import"./Add-DoWwr2Ul.js";import"./Delete-3M81lrPw.js";import"./Error-BCA7Sqlp.js";import"./index-yHuDMvJG.js";import"./useThemeProps-CKP9Y0ID.js";import"./toPropertyKey-PLuKRk1e.js";import"./emotion-cache.browser.esm-XJ-XPpML.js";import"./Search-C-_AhyGc.js";import"./FormControlLabel-DOOEGsWf.js";import"./useFormControl--BH_DJ53.js";import"./ViewColumn-hY5ABDIE.js";import"./FormControl-OqvyHuZv.js";import"./utils-DoM3o7-Q.js";import"./FormGroup-CMuwdC56.js";import"./Grid-DtUfQ3Vj.js";import"./Select-DdaHDvk1.js";import"./OutlinedInput-DYGzdilY.js";import"./TextField-F_rhcivt.js";import"./index-TosM5wPB.js";import"./LastPage-Bb4DD2DL.js";import"./Toolbar-NIQ6PygD.js";import"./Clear-De-d2EF8.js";import"./index-Bu_gkGlR.js";import"./MoreVert-BO-o5JnK.js";import"./index-C16yDs-W.js";import"./confirm-ULP5BJCc.js";import"./DialogContentText-Dn5BO5iN.js";import"./Alert-W6ZoTZ3g.js";import"./useSlot-B-WSi9Gx.js";import"./format-error-D2V1IlSA.js";import"./session-B2D3crc6.js";import"./did-address-DdPH8Oii.js";import"./Link-DVsnc_O1.js";import"./react-beautiful-dnd.esm-X7VVnJcV.js";import"./raf-schd.esm-Bwmb5y9p.js";import"./bundle-avatar-O5LAhLys.js";import"./Avatar-hKVZimRi.js";import"./shorten-label-CfxSH4kN.js";import"./Download-BPmZzvvE.js";import"./QuestionMarkCircle-CgS1lsZu.js";import"./useSetState-BYl9GHuD.js";import"./index-DUI49Z8_.js";import"./index-DF3kd1Sh.js";import"./index-BSHm8cVk.js";import"./api-CSS3RGWL.js";import"./index-Bk2jPh4B.js";import"./ExpandMore-5qu10-VQ.js";import"./ChevronRight-Ddp2NEiN.js";import"./OpenInNew-__JhP3_b.js";import"./DeleteOutline-ANDKP8NK.js";import"./item-DuOVC0zG.js";import"./Launch-DHVfRKfR.js";import"./Done-Bhem2M06.js";import"./click-to-copy-BBJwL23k.js";import"./get-safe-url-V1nDCXmu.js";import"./ButtonGroup-3SFP3-pq.js";import"./jss-plugin-props-sort.esm-C1sdxDXq.js";import"./ArrowDropDown-DQkl2nkF.js";import"./InputAdornment-BEqTI4V4.js";import"./index-2qT6Nx8y.js";import"./index-BDf4kEgE.js";import"./purify.es-DutPtr9A.js";import"./index-CUC8utCb.js";import"./Stepper-AlrTJRkZ.js";import"./RadioGroup-D2BrBv0W.js";const r=new URL(window.location.href),m=r.searchParams.get("mode")==="dialog",w=m?"":r.searchParams.get("padding")||"";function Ro(){const{t:e}=n(),{componentDid:o}=l(),s=d(t=>t.breakpoints.down("md")),a=t=>{t.stopPropagation(),window.parent.postMessage({event:"resourceDialog.close",componentDid:o},"*")};c.useEffect(()=>{window.parent.postMessage({event:"resourceDialog.loaded",componentDid:o},"*")},[o]);const p=i.jsx(g,{padding:w,initUrl:r});return m?i.jsx(u,{className:"studio-dialog",title:e("blocklet.publish.blockletStudio"),maxWidth:!1,fullWidth:!1,PaperProps:{style:s?{width:"100%",height:window.innerHeight}:{maxWidth:1350,minWidth:930,width:"80%"}},onClose:a,showCloseButton:!0,disableEscapeKeyDown:!0,open:!0,children:i.jsx(h,{sx:{height:"72vh",overflow:"auto",position:"relative"},children:p})}):p}export{Ro as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{P as e}from"./index-BHTgfI3J.js";const p=e.oneOfType([e.func,e.object]);export{p as r};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{P as f,u as x,j as t,a as i,al as m,b9 as y}from"./index-BHTgfI3J.js";import{p}from"./index-6R7fU17e.js";function l({value:e,...r}){const{t:s,locale:o}=x();if(!e)return"-";const c={locale:y(o),compact:!0},n=new Date(e).getTime(),a=Date.now();if(n>a){const T=p(n-a,c);return t.jsx(i,{title:m(e,o),placement:"top-end",enterTouchDelay:0,children:t.jsx("span",{...r,children:s("common.afterTime",{time:T})})})}const u=p(a-n,c);return t.jsx(i,{title:m(e,o),placement:"top-end",enterTouchDelay:0,children:t.jsx("span",{...r,children:s("common.timeAgo",{time:u})})})}l.propTypes={value:f.any};l.defaultProps={value:""};export{l as R};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{cc as o}from"./index-BHTgfI3J.js";const t=new o;export{t as b};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import{r as c,a6 as z,ap as M,j as t,cj as g,B as P,T as B,ck as E,cl as H,aO as N,cm as S,c9 as A,b as O,aI as R,bf as q,cn as f,co as D,bP as T,cp as F}from"./index-BHTgfI3J.js";const G={top:-960,width:960,height:960,body:'<path fill="currentColor" d="M480-80q-84 0-157-31.5T196-197t-85-127.5T80-482t31-156.5T196-765t127-84.5T480-880t157 30.5T764-765t85 126.5T880-482t-31 157.5T764-197t-127 85.5T480-80m0-58q35-36 58.5-82.5T577-331H384q14 60 37.5 108t58.5 85m-85-12q-25-38-43-82t-30-99H172q38 71 88 111.5T395-150m171-1q72-23 129.5-69T788-331H639q-13 54-30.5 98T566-151M152-391h159q-3-27-3.5-48.5T307-482q0-25 1-44.5t4-43.5H152q-7 24-9.5 43t-2.5 45t2.5 46.5T152-391m221 0h215q4-31 5-50.5t1-40.5q0-20-1-38.5t-5-49.5H373q-4 31-5 49.5t-1 38.5q0 21 1 40.5t5 50.5m275 0h160q7-24 9.5-44.5T820-482t-2.5-45t-9.5-43H649q3 35 4 53.5t1 34.5q0 22-1.5 41.5T648-391m-10-239h150q-33-69-90.5-115T565-810q25 37 42.5 80T638-630m-254 0h194q-11-53-37-102.5T480-820q-32 27-54 71t-42 119m-212 0h151q11-54 28-96.5t43-82.5q-75 19-131 64t-91 115"/>'},J=G;function W(e){var u,m;const{showText:l=!0,popperProps:y={},popperType:k="click",icon:r,size:p=24,onChange:U=A,...b}=e,{locale:x,changeLocale:j,languages:d}=c.useContext(z),i=c.useRef(null),[h,o]=c.useState(!1),s=M(),C=((u=s==null?void 0:s.palette)==null?void 0:u.mode)==="dark",v=n=>{j(n),o(!1),typeof e.onChange=="function"&&e.onChange(n)},I=n=>{var a;(a=i.current)!=null&&a.contains(n.target)||o(!1)},L=l?O:R,$=k==="hover"?{onMouseEnter:()=>{o(!0)},onMouseLeave:()=>{o(!1)}}:{onClick:()=>{o(!h)}},w=c.useMemo(()=>r?t.jsx(r,{}):t.jsx(g,{icon:J,fontSize:p,style:{transform:"scale(1.10)"}}),[r,p]);return t.jsxs(K,{dark:C,theme:s,...b,...$,children:[t.jsx(L,{ref:i,className:"trigger",role:"button","aria-label":"Locale selector button",children:t.jsxs(P,{display:"flex",alignItems:"center",children:[w,l?t.jsx(B,{component:"strong",className:"trigger-text",children:(m=d.find(n=>n.code===x))==null?void 0:m.name}):""]})}),t.jsx(Q,{open:h,anchorEl:i.current,...y,disablePortal:!0,children:t.jsx("div",{className:"locales",children:t.jsx(E,{onClickAway:I,children:t.jsx(H,{children:d.map(({code:n,name:a})=>t.jsxs(N,{className:"locale-item",onClick:()=>v(n),children:[t.jsx(g,{icon:S,className:n===x?"check-icon check-icon-visible":"check-icon"}),a]},n))})})})})]})}const K=q("div",{shouldForwardProp:e=>e!=="dark"})`
|
|
2
|
-
display: inline-block;
|
|
3
|
-
|
|
4
|
-
.trigger {
|
|
5
|
-
display: flex;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
justify-content: center;
|
|
8
|
-
font-size: 14px;
|
|
9
|
-
white-space: nowrap;
|
|
10
|
-
|
|
11
|
-
.trigger-text {
|
|
12
|
-
margin-left: 5px;
|
|
13
|
-
font-size: 14px;
|
|
14
|
-
color: ${e=>f(e)};
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.locales {
|
|
19
|
-
background: ${e=>D(e)};
|
|
20
|
-
box-shadow:
|
|
21
|
-
0px 8px 16px 0px ${T.gray6},
|
|
22
|
-
0px 0px 0px 1px ${T.gray6};
|
|
23
|
-
border-radius: 8px;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.locale-item {
|
|
27
|
-
font-size: 16px;
|
|
28
|
-
font-style: normal;
|
|
29
|
-
font-stretch: normal;
|
|
30
|
-
line-height: normal;
|
|
31
|
-
letter-spacing: 2px;
|
|
32
|
-
text-align: center;
|
|
33
|
-
color: ${e=>f(e)};
|
|
34
|
-
cursor: pointer;
|
|
35
|
-
display: flex;
|
|
36
|
-
padding: 16px;
|
|
37
|
-
align-items: center;
|
|
38
|
-
.check-icon {
|
|
39
|
-
visibility: hidden;
|
|
40
|
-
margin-right: 4px;
|
|
41
|
-
}
|
|
42
|
-
.check-icon-visible {
|
|
43
|
-
visibility: visible;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
`,Q=q(F)`
|
|
47
|
-
z-index: ${({theme:e})=>e.zIndex.tooltip+10};
|
|
48
|
-
`;export{W as L};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as o,cb as t}from"./index-BHTgfI3J.js";function e(){return o.useContext(t)}export{e as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{br as s,bY as h,bZ as v,bp as n,b_ as j,b$ as k}from"./index-BHTgfI3J.js";const E=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],L=["component","slots","slotProps"],N=["component"];function W(e,o){const{className:x,elementType:b,ownerState:p,externalForwardedProps:l,getSlotOwnerState:d,internalForwardedProps:a}=o,_=s(o,E),{component:c,slots:t={[e]:void 0},slotProps:F={[e]:void 0}}=l,O=s(l,L),P=t[e]||b,r=h(F[e],p),i=v(n({className:x},_,{externalForwardedProps:e==="root"?O:void 0,externalSlotProps:r})),{props:{component:u},internalRef:g}=i,S=s(i.props,N),y=j(g,r==null?void 0:r.ref,o.ref),f=d?d(S):{},C=n({},p,f),w=e==="root"?u||c:u,m=k(P,n({},e==="root"&&!c&&!t[e]&&a,e!=="root"&&!t[e]&&a,S,w&&{as:w},{ref:y}),C);return Object.keys(f).forEach(T=>{delete m[T]}),[P,m]}export{W as u};
|
|
@@ -1,334 +0,0 @@
|
|
|
1
|
-
import{bm as Ke,bn as Ve,bo as Ye,bp as _,r as f,bq as Xe,br as Qe,j as n,bs as Je,bt as Ze,bu as et,P as u,B as b,b as G,a$ as tt,bv as nt,bw as rt,bx as X,by as ot,a4 as j,T as $,a6 as I,aN as it,a5 as U,bz as de,bA as B,bB as st,u as Q,bg as D,ap as at,aO as ue,k as ye,n as fe,bk as lt,bC as ct,H as pt,c as dt,L as ut}from"./index-BHTgfI3J.js";import{U as ft}from"./resource-dialog-BgQL1Bby.js";import{B as mt}from"./index-D-H65z2j.js";import{E as ht}from"./index-Bu_gkGlR.js";import{S as xt}from"./index-DF3kd1Sh.js";import{B as be}from"./bundle-avatar-O5LAhLys.js";import{B as gt}from"./index-6R7fU17e.js";import{R as yt}from"./relative-time-CTnNqlzz.js";import{p as ve}from"./purify.es-DutPtr9A.js";import{L as we}from"./Link-DVsnc_O1.js";import{G as K}from"./Grid-DtUfQ3Vj.js";import{T as bt}from"./index-yHuDMvJG.js";import{F as vt}from"./FormControl-OqvyHuZv.js";import{S as wt}from"./Select-DdaHDvk1.js";import{L as jt}from"./ListSubheader-BH5XlJEK.js";import{T as Ct}from"./TextField-F_rhcivt.js";import"./index-TosM5wPB.js";import"./fallback-C1u7ttF8.js";import"./Alert-W6ZoTZ3g.js";import"./useSlot-B-WSi9Gx.js";import"./ExpandMore-5qu10-VQ.js";import"./Avatar-hKVZimRi.js";import"./index-DC_6kAED.js";import"./Menu-BbykPAXR.js";import"./Toolbar-NIQ6PygD.js";import"./Hidden-CUtsI_97.js";import"./index-CyUo44rA.js";import"./emotion-cache.browser.esm-XJ-XPpML.js";import"./uniqBy-DX0iyhMx.js";import"./index-2qT6Nx8y.js";import"./FormControlLabel-DOOEGsWf.js";import"./useFormControl--BH_DJ53.js";import"./index-Bk2jPh4B.js";import"./InputAdornment-BEqTI4V4.js";import"./OpenInNew-__JhP3_b.js";import"./CloseOutlined-BctPwMsA.js";import"./index-B0lK7ost.js";import"./ButtonGroup-3SFP3-pq.js";import"./HelpOutline-Bmrs_0Er.js";import"./DialogContentText-Dn5BO5iN.js";import"./use-mobile-C8gQQg5h.js";import"./MoreVert-BO-o5JnK.js";import"./ListItemButton-ChDufQ0D.js";import"./selector-C2hu0WUk.js";import"./useThemeProps-CKP9Y0ID.js";import"./toPropertyKey-PLuKRk1e.js";import"./Search-C-_AhyGc.js";import"./ViewColumn-hY5ABDIE.js";import"./FormGroup-CMuwdC56.js";import"./Delete-3M81lrPw.js";import"./LastPage-Bb4DD2DL.js";import"./OutlinedInput-DYGzdilY.js";import"./utils-DoM3o7-Q.js";import"./Clear-De-d2EF8.js";function Lt(e){return Ke("MuiImageList",e)}Ve("MuiImageList",["root","masonry","quilted","standard","woven"]);const St=["children","className","cols","component","rowHeight","gap","style","variant"],Tt=e=>{const{classes:t,variant:r}=e;return et({root:["root",r]},Lt,t)},kt=Ye("ul",{name:"MuiImageList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant]]}})(({ownerState:e})=>_({display:"grid",overflowY:"auto",listStyle:"none",padding:0,WebkitOverflowScrolling:"touch"},e.variant==="masonry"&&{display:"block"})),Et=f.forwardRef(function(t,r){const o=Xe({props:t,name:"MuiImageList"}),{children:i,className:s,cols:c=2,component:a="ul",rowHeight:d="auto",gap:x=4,style:m,variant:p="standard"}=o,l=Qe(o,St),h=f.useMemo(()=>({rowHeight:d,gap:x,variant:p}),[d,x,p]);f.useEffect(()=>{},[]);const y=p==="masonry"?_({columnCount:c,columnGap:x},m):_({gridTemplateColumns:`repeat(${c}, 1fr)`,gap:x},m),w=_({},o,{component:a,gap:x,rowHeight:d,variant:p}),L=Tt(w);return n.jsx(kt,_({as:a,className:Je(L.root,L[p],s),ref:r,style:y,ownerState:w},l,{children:n.jsx(Ze.Provider,{value:h,children:i})}))});je.propTypes={theme:u.string,type:u.oneOf(["button","line"]),onSelectType:u.func,extra:u.node,loading:u.bool,currentTab:u.oneOf(["info","success","warning","error",""])};function je({theme:e="dark",type:t="button",onSelectType:r,extra:o=void 0,currentTab:i="",loading:s=!1,...c}){const a=[{label:"All",value:""},{label:"Info",value:"info"},{label:"Success",value:"success"},{label:"Warning",value:"warning"},{label:"Error",value:"error"}],d=l=>{(l!==i||!s)&&r(l)},x=f.useMemo(()=>{const l={width:"100%",bgcolor:e==="dark"?"#F9FAFB":"",overflowY:"auto",whiteSpace:"nowrap",borderRadius:0,display:"flex",justifyContent:"space-between",alignItems:"flex-end",flexWrap:"wrap",gap:"8px"};return t==="line"?Object.assign(l,{}):l},[t,e]),m=(l,h,y)=>n.jsx(G,{disabled:s,onClick:()=>d(l.value),className:`profile-button ${h?"active":""}`,...c,children:l.label},l.value||y),p=(l,h,y)=>n.jsx(G,{variant:"text",disabled:s,onClick:()=>d(l.value),className:`profile-line-button ${h?"active":""}`,...c,children:l.label},l.value||y);return n.jsxs(b,{className:"severity-tabs",sx:x,children:[n.jsx("div",{style:t==="line"?{flex:1,borderBottom:"1px solid rgba(209, 213, 219, 1)"}:{},children:a==null?void 0:a.map((l,h)=>{const y=i===(l==null?void 0:l.value);return t==="line"?n.jsx(f.Fragment,{children:p(l,y,h)},l.value||h):n.jsx(f.Fragment,{children:m(l,y,h)},l.value||h)})}),o]})}var Rt=f;function Nt(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var F=Nt(Rt);function V(){return V=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},V.apply(this,arguments)}function Pt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Y(e,t)}function Y(e,t){return Y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,i){return o.__proto__=i,o},Y(e,t)}function $t(e,t){if(e==null)return{};var r={},o=Object.keys(e),i,s;for(s=0;s<o.length;s++)i=o[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var me={position:"absolute",bottom:0,left:0,height:0,overflow:"hidden","padding-top":0,"padding-bottom":0,border:"none"},Ot=["box-sizing","width","font-size","font-weight","font-family","font-style","letter-spacing","text-indent","white-space","word-break","overflow-wrap","padding-left","padding-right"];function Mt(e,t){if(!e||typeof e!="object")return e;var r={};return Object.keys(e).forEach(function(o){t.indexOf(o)>-1||(r[o]=e[o])}),r}var At=["component","className","unsafeHTML"];function Ce(e,t){if(t!=="letters"&&t!=="words")throw new Error("Unsupported options basedOn: "+t);if(e.nodeType===Node.TEXT_NODE){var r=document.createDocumentFragment(),o;switch(t){case"words":o=e.textContent.split(/\b|(?=\W)/);break;case"letters":o=Array.from(e.textContent);break}o.forEach(function(a){r.appendChild(_t(a))}),e.parentNode.replaceChild(r,e)}else if(e.nodeType===Node.ELEMENT_NODE)for(var i=[].slice.call(e.childNodes),s=i.length,c=0;c<s;c++)Ce(i[c],t)}function _t(e){var t=document.createElement("span");return t.className="LinesEllipsis-unit",t.textContent=e,t}function he(e){e.parentNode.replaceChild(document.createTextNode(e.textContent),e)}function Le(e,t){if(!(!t.contains(e)||e===t)){for(;e.nextElementSibling;)e.parentNode.removeChild(e.nextElementSibling);Le(e.parentNode,t)}}function Ht(e){for(var t=e;t=t.parentNode;)if(/p|div|main|section|h\d|ul|ol|li/.test(t.tagName.toLowerCase()))return t}function q(e){return!!(e.offsetHeight&&(e.offsetWidth||/\S/.test(e.textContent)))}var Se={component:"div",unsafeHTML:"",maxLine:1,ellipsis:"…",ellipsisHTML:void 0,className:"",basedOn:void 0,onReflow:function(){},winWidth:void 0},It=Object.keys(Se),Te=function(e){Pt(t,e);function t(o){var i;return i=e.call(this,o)||this,i.state={html:o.unsafeHTML,clamped:!1},i.canvas=null,i.maxLine=0,i.nlUnits=[],i}var r=t.prototype;return r.componentDidMount=function(){this.initCanvas(),this.reflow(this.props)},r.componentDidUpdate=function(i){i.winWidth!==this.props.winWidth&&this.copyStyleToCanvas(),this.props!==i&&this.reflow(this.props)},r.componentWillUnmount=function(){this.canvas.parentNode.removeChild(this.canvas),this.canvas=null},r.setState=function(i,s){return typeof i.clamped<"u"&&(this.clamped=i.clamped),e.prototype.setState.call(this,i,s)},r.initCanvas=function(){if(!this.canvas){var i=this.canvas=document.createElement("div");i.className="LinesEllipsis-canvas "+this.props.className,i.setAttribute("aria-hidden","true"),this.copyStyleToCanvas(),Object.keys(me).forEach(function(s){i.style[s]=me[s]}),document.body.appendChild(i)}},r.copyStyleToCanvas=function(){var i=this,s=window.getComputedStyle(this.target);Ot.forEach(function(c){i.canvas.style[c]=s[c]})},r.reflow=function(i){this.maxLine=+i.maxLine||1,this.canvas.innerHTML=i.unsafeHTML;var s=i.basedOn||(/^[\x00-\x7F]+$/.test(i.unsafeHTML)?"words":"letters");Ce(this.canvas,s);var c=this.putEllipsis(this.calcIndexes()),a={clamped:c,html:this.canvas.innerHTML};this.setState(a,i.onReflow.bind(this,a))},r.calcIndexes=function(){var i=[0],s=this.nlUnits=Array.from(this.canvas.querySelectorAll(".LinesEllipsis-unit")),c=s.length;if(!s.length)return i;var a=s.find(q);if(!a)return i;for(var d=1,x=a.offsetTop,m=1;m<c&&!(q(s[m])&&s[m].offsetTop-x>1&&(d++,i.push(m),x=s[m].offsetTop,d>this.maxLine));m++);return i},r.putEllipsis=function(i){if(i.length<=this.maxLine)return!1;this.nlUnits=this.nlUnits.slice(0,i[this.maxLine]);var s=this.nlUnits.pop(),c=this.makeEllipsisSpan();do Le(s,this.canvas),Ht(s).appendChild(c),s=this.nlUnits.pop();while(s&&(!q(s)||c.offsetHeight>s.offsetHeight||c.offsetTop>s.offsetTop));return s&&he(s),this.nlUnits.forEach(he),!0},r.makeEllipsisSpan=function(){var i=this.props,s=i.ellipsisHTML,c=i.ellipsis,a=document.createElement("span");a.appendChild(document.createElement("wbr"));var d=document.createElement("span");return d.className="LinesEllipsis-ellipsis",s?d.innerHTML=s:d.textContent=c,a.appendChild(d),a},r.isClamped=function(){return this.clamped},r.render=function(){var i=this,s=this.state,c=s.html,a=s.clamped,d=this.props,x=d.component,m=d.className,p=d.unsafeHTML,l=$t(d,At);return F.default.createElement(x,V({className:"LinesEllipsis "+(a?"LinesEllipsis--clamped":"")+" "+m,ref:function(y){return i.target=y}},Mt(l,It)),F.default.createElement("div",{dangerouslySetInnerHTML:{__html:a?c:p}}))},t}(F.default.Component);Te.defaultProps=Se;var zt=Te;const Dt=tt(zt),{joinURL:C,withQuery:R}=nt,{toTypeInfo:Bt}=rt,{isEVMChain:Ut,getExplorerUrl:Ft}=X,{arcChainConfig:qt}=ot,Wt={ROLE_ACCOUNT:"number",ROLE_NODE:"number",ROLE_DEVICE:"number",ROLE_APPLICATION:"number",ROLE_SMART_CONTRACT:"number",ROLE_BOT:"number",ROLE_ASSET:"number",ROLE_STAKE:"number",ROLE_VALIDATOR:"number",ROLE_GROUP:"number",ROLE_TX:"number",ROLE_TETHER:"number",ROLE_SWAP:"number",ROLE_DELEGATION:"number",ROLE_VC:"number",ROLE_BLOCKLET:"number",ROLE_STORE:"number",ROLE_TOKEN:"number",ROLE_FACTORY:"number",ROLE_ROLLUP:"number",ROLE_STORAGE:"number",ROLE_PROFILE:"number",ROLE_ANY:"number"},N="https://explorer.abtnetwork.io/explorer/";var Gt=function({hash:t,asset:r,rollup:o,address:i,token:s,stake:c,chainId:a=""}){if(Ut(a)){const p=Ft(a);return t?C(p,`tx/${t}`):r?C(p,`token/${r}`):C(p,`address/${i}`)}const d=qt[a],x=d==null?void 0:d.defaultRPC,m=x?`${x}`:void 0;return o&&Bt(o).role===Wt.ROLE_ROLLUP?t?R(C(N,`rollups/${o}/moves/${t}`),{host:m}):R(C(N,`rollups/${o}`),{host:m}):r?R(C(N,`assets/${r}`),{host:m}):t?R(C(N,`txs/${t}`),{host:m}):s?R(C(N,`tokens/${s}/tx`),{host:m}):c?R(C(N,`stakes/${c}`),{host:m}):R(C(N,`accounts/${i}`),{host:m})},Kt={isSameAddr:(e,t)=>String(e).toLowerCase()===String(t).toLowerCase()};const A=Gt,{isSameAddr:P}=Kt;class J{constructor({type:t,did:r,chainId:o,text:i}){this.text=i,this.did=r,this.type=t,this.chainId=o}}const Z=e=>{const t=[];try{let r=0;const o=/<(.+?)\(?[tx|nft|token|stake|did|dapp|link]+[:](.+?)\)?>/gi,i=e.matchAll(o);for(const s of i){const c=/\([tx|nft|token|stake|did|dapp|link]+[:](.+?)\)/gi,a=s[0],d=s.index||r,x=d+a.length;if([...a.matchAll(c)].length>1)return[e];let p="";const l=c.exec(a);let h="";if(l){const T=l[0];p=a.replace(T,"").replace(/^</,"").replace(/(>)$/,""),h=T.replace(/\)$/,"").replace(/^\(/,"")}else h=a;const y=h.split(":"),w=(y[0]||"").replace(/^</,"").replace(/^\(/,"").toUpperCase(),L=(y[1]||"").replace(/>$/,"").replace(/\)$/,""),O=(y[y.length-1]||"").replace(/>$/,"").replace(/\)$/,"");t.push(e.substring(r,d)),t.push(new J({type:w,chainId:L,did:O,text:p||w})),r=x}return r<e.length&&t.push(e.substring(r)),t}catch(r){return console.error(r==null?void 0:r.message),[e]}},ke=e=>{let t;const{type:r,chainId:o,did:i}=e;return P(r,"link")?t=`${o}:${i}`:P(r,"tx")?t=A({hash:i,chainId:o}):P(r,"stake")?t=A({stake:i,chainId:o}):P(r,"nft")?t=A({asset:i,chainId:o}):P(r,"token")?t=A({token:i,chainId:o}):P(r,"did")&&(t=A({address:i,chainId:o})),t},Vt=(e,t=!0)=>Z(e).map(o=>{if(o instanceof J){if(t){const i=ke(o),{type:s,chainId:c,did:a}=o;return P(s,"dapp")?`<em style="font-weight:bold;" data-type="${s}" data-chain-id="${c}" data-did="${a}">${o.text}</em>`:i?`<a target="_blank" rel="noopener noreferrer" style="color:#4598fa;font-weight:bold;" href="${i}">${o.text}</a>`:`<em style="font-weight:bold;" data-type="${s}" data-chain-id="${c}" data-did="${a}">${o.text}</em>`}return o.text}return o}).join(""),Yt=e=>Z(e).map(r=>r instanceof J?`<${ke(r)}|${r.text}>`:r.replace(/:\n/g,": ")).join("");var xe={toClickableSpan:Vt,toTextList:Z,toSlackLink:Yt};function Ee({attachment:e}){const{data:t}=e;let r="";try{r=new URL(t.url).host}catch{r=t.url}return n.jsx(Xt,{children:n.jsx("div",{className:"attachment",children:n.jsxs(we,{target:"_blank",rel:"noopener noreferrer",href:t.url,className:"link",children:[!!r&&n.jsx("span",{className:"url",children:r}),!!t.title&&n.jsx(b,{className:"title",children:t.title}),!!t.description&&n.jsx("span",{className:"description",children:t.description}),!!t.image&&n.jsx("img",{className:"image",src:X.getImagePath(t.image),alt:""})]})})})}const Xt=j.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: row;
|
|
4
|
-
justify-content: flex-start;
|
|
5
|
-
width: 100%;
|
|
6
|
-
.attachment {
|
|
7
|
-
display: flex;
|
|
8
|
-
flex-direction: column;
|
|
9
|
-
flex: 1;
|
|
10
|
-
width: 0;
|
|
11
|
-
.url {
|
|
12
|
-
color: #9397a1;
|
|
13
|
-
font-size: 12px;
|
|
14
|
-
}
|
|
15
|
-
.title {
|
|
16
|
-
color: #4598fa;
|
|
17
|
-
font-size: 14px;
|
|
18
|
-
font-weight: bold;
|
|
19
|
-
margin-top: 4px;
|
|
20
|
-
line-height: 18px;
|
|
21
|
-
white-space: nowrap;
|
|
22
|
-
overflow: hidden;
|
|
23
|
-
text-overflow: ellipsis;
|
|
24
|
-
}
|
|
25
|
-
.description {
|
|
26
|
-
width: 100%;
|
|
27
|
-
display: inline-block;
|
|
28
|
-
color: #25292f;
|
|
29
|
-
font-size: 14px;
|
|
30
|
-
margin-top: 4px;
|
|
31
|
-
word-break: break-all;
|
|
32
|
-
white-space: nowrap;
|
|
33
|
-
overflow: hidden;
|
|
34
|
-
text-overflow: ellipsis;
|
|
35
|
-
}
|
|
36
|
-
.image {
|
|
37
|
-
margin-top: 8px;
|
|
38
|
-
height: 140px;
|
|
39
|
-
object-fit: cover;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
`;Ee.propTypes={attachment:u.object.isRequired};function Re({attachment:e}){const{data:t}=e;return n.jsx(Qt,{children:n.jsx("div",{className:"attachment",children:n.jsx("img",{className:"image",src:X.getImagePath(t.url),alt:t.alt})})})}const Qt=j.div`
|
|
43
|
-
display: flex;
|
|
44
|
-
flex-direction: row;
|
|
45
|
-
justify-content: flex-start;
|
|
46
|
-
width: 100%;
|
|
47
|
-
.attachment {
|
|
48
|
-
display: flex;
|
|
49
|
-
flex-direction: column;
|
|
50
|
-
flex: 1;
|
|
51
|
-
width: 0;
|
|
52
|
-
.image {
|
|
53
|
-
width: 180px;
|
|
54
|
-
object-fit: contain;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
`;Re.propTypes={attachment:u.object.isRequired};function Ne({attachment:e}){var i;const{data:t}=e,r=(i=t.color)==null?void 0:i.toLowerCase();let o="14px";return t.size==="small"?o="12px":t.size==="normal"?o="14px":t.size==="big"&&(o="16px"),n.jsx(Jt,{children:n.jsx("div",{className:"attachment",children:n.jsx("span",{className:"title",style:{fontSize:o,color:r},children:t.text})})})}const Jt=j.div`
|
|
58
|
-
display: flex;
|
|
59
|
-
flex-direction: row;
|
|
60
|
-
justify-content: flex-start;
|
|
61
|
-
width: 100%;
|
|
62
|
-
.attachment {
|
|
63
|
-
display: flex;
|
|
64
|
-
flex-direction: column;
|
|
65
|
-
flex: 1;
|
|
66
|
-
width: 0;
|
|
67
|
-
white-space: pre-line;
|
|
68
|
-
}
|
|
69
|
-
`;Ne.propTypes={attachment:u.object.isRequired};const Zt=e=>{const t="explorer.arcblockio.cn";return e&&{beta:"beta.abtnetwork.io",main:"main.abtnetwork.io"}[e]||t},en=e=>{try{return new URL(e).host}catch{return e}};var H={getChainHost:Zt,getUrlHost:en},E={linkStyle:{color:"#2754C5",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif",fontSize:"14px",textDecoration:"underline"},actionsStyle:{margin:"20px -8px 0px"},actionStyle:{color:"#4598fa",fontSize:14,border:"1px solid #4598fa",display:"inline-block",borderRadius:"4px",margin:"8px",marginTop:"8px",marginBottom:"8px",marginLeft:"8px",marginRight:"8px"},assetStyle:{backgroundColor:"#f6f6f6",borderRadius:"8px",padding:"8px"},remarkStyle:{color:"#9397a1",fontSize:"12px",margin:0,whiteSpace:"pre-line!important"},summaryStyle:{color:"#49c3ad"},titleStyle:{marginBottom:"6px"},severityColorMap:{normal:"#C4C5CA",success:"#25C99B",error:"#F16E6E",warning:"#DE9E37"},attachmentsStyle:{borderLeft:"2px solid transparent",paddingLeft:"20px"},h1Style:{color:"#333",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif",fontSize:"24px",fontWeight:"bold",margin:"40px 0",padding:"0"},footerStyle:{color:"#898989",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif",fontSize:"12px",lineHeight:"22px",margin:0}};ee.propTypes={locale:u.string,data:u.object.isRequired};ee.defaultProps={locale:"en"};function ee({locale:e="en",data:t}){const r=`${t.address.slice(0,4)}...${t.address.slice(-4)}`,o={zh:"来自",en:"from"}[e]||"from",i={zh:"接收",en:"Received"}[e]||"Received",c=`https://${H.getUrlHost(t.chainHost)||H.getChainHost(t.chainId)}/explorer/tokens/${t.address}/tx`;return n.jsx(b,{sx:{pr:1},children:n.jsx("a",{href:c,target:"_blank",style:{...E.assetStyle,textDecoration:"none",color:"initial",display:"block"},rel:"noreferrer",children:n.jsxs(b,{style:E.titleStyle,display:"flex",justifyContent:"space-between",alignItems:"center",children:[n.jsxs(b,{children:[n.jsx($,{component:"div",children:i}),n.jsxs($,{component:"div",style:E.remarkStyle,children:[o," ",r]})]}),n.jsxs($,{component:"div",align:"right",style:E.summaryStyle,children:["+",t.amount," ",t.symbol]})]})})})}te.propTypes={locale:u.string,data:u.object.isRequired};te.defaultProps={locale:"en"};function te({locale:e,data:t}){const r={zh:"接收",en:"Received"}[e]||"Received",i=`https://${H.getUrlHost(t.chainHost)||H.getChainHost(t.chainId)}/explorer/assets/${t.did}`;return n.jsx(b,{sx:{pr:1},children:n.jsx("a",{href:i,target:"_blank",style:{...E.assetStyle,textDecoration:"none",color:"initial",display:"block"},rel:"noreferrer",children:n.jsxs(b,{style:E.titleStyle,display:"flex",justifyContent:"space-between",alignItems:"center",children:[n.jsxs(b,{children:[n.jsx($,{component:"div",children:r}),n.jsx($,{component:"div",style:E.remarkStyle,children:t.did})]}),n.jsx($,{component:"div",align:"right",style:E.summaryStyle,children:"+1 Asset"})]})})})}Pe.propTypes={data:u.object.isRequired};function Pe({data:e}){return n.jsxs("a",{href:e.url,target:"_blank",style:{display:"flex",textDecoration:"none",color:"initial"},rel:"noreferrer",children:[n.jsx("img",{className:"image",src:e.logo,width:50,height:50,alt:""}),n.jsxs("div",{style:{flex:1,marginLeft:"10px"},children:[n.jsx("div",{style:{marginBottom:"6px"},children:e.title}),n.jsx("div",{style:{color:"#a5a5a5",fontSize:"0.8em"},children:e.appDID})]})]})}ne.propTypes={locale:u.string,data:u.object.isRequired};ne.defaultProps={locale:"en"};function ne({locale:e,data:t}){const r=H.getChainHost(t.chainId),o=`https://${r}/explorer/txs/${t.hash}`,i={zh:"交易详情",en:"Transaction Details"}[e]||"Transaction Details",s={zh:"交易哈希",en:"Transaction Hash"}[e]||"Transaction Hash";return n.jsxs("a",{href:o,target:"_blank",style:{textDecoration:"none",color:"initial",display:"block",fontSize:14},rel:"noreferrer",children:[n.jsx("h6",{style:{color:"#a5a5a5",margin:0},children:r}),n.jsx("p",{style:{color:"#4598fa",margin:0},children:i}),n.jsxs("div",{style:{wordBreak:"break-all"},children:[s,": ",t.hash]})]})}function $e({attachment:e,...t}){const{local:r}=f.useContext(I);return n.jsxs(tn,{...t,children:[e.type==="link"&&n.jsx(Ee,{attachment:e}),e.type==="image"&&n.jsx(Re,{attachment:e}),e.type==="text"&&n.jsx(Ne,{attachment:e}),e.type==="token"&&n.jsx(ee,{data:e.data,local:r}),e.type==="asset"||e.type==="vc"?n.jsx(te,{data:e.data,local:r}):null,e.type==="dapp"&&n.jsx(Pe,{data:e.data,local:r}),e.type==="transaction"&&n.jsx(ne,{data:e.data,local:r}),e.type==="divider"&&n.jsx(it,{})]})}const tn=j.div`
|
|
70
|
-
display: flex;
|
|
71
|
-
flex-direction: column;
|
|
72
|
-
width: 100%;
|
|
73
|
-
margin-bottom: 4px;
|
|
74
|
-
&:last-child {
|
|
75
|
-
margin-bottom: 0;
|
|
76
|
-
}
|
|
77
|
-
`;$e.propTypes={attachment:u.object.isRequired};function Oe({data:e,...t}){const{items:r}=e;return n.jsx(nn,{...t,children:n.jsx(K,{className:"page-metrics",container:!0,spacing:5,children:r.map(o=>n.jsxs(K,{item:!0,lg:3,md:4,sm:6,xs:12,children:[n.jsx(b,{className:"metric-number",dangerouslySetInnerHTML:{__html:ve.sanitize(o.content)}}),n.jsx(b,{className:"metric-name",children:o.title})]},o.title))})})}const nn=j(b)`
|
|
78
|
-
.metric-number {
|
|
79
|
-
font-size: 18px;
|
|
80
|
-
font-weight: 600;
|
|
81
|
-
}
|
|
82
|
-
.metric-name {
|
|
83
|
-
font-size: 14px;
|
|
84
|
-
color: rgba(0, 0, 0, 0.6);
|
|
85
|
-
}
|
|
86
|
-
`;Oe.propTypes={data:u.object.isRequired};function Me({data:e,...t}){const{items:r}=e,o=U(a=>a.breakpoints.down("sm")),i=U(a=>a.breakpoints.down("md")),s=U(a=>a.breakpoints.down("lg")),c=()=>o?1:i?3:s?4:6;return n.jsx(rn,{...t,children:n.jsx(K,{className:"page-metrics",container:!0,spacing:5,sx:{margin:0},children:n.jsx(Et,{variant:"quilted",cols:c(),rowHeight:121,sx:{margin:0},children:r.map(a=>{const d=a.cover||a.display;return d?n.jsx(f.Fragment,{children:a.link?n.jsx("a",{href:a.link,target:"_blank",rel:"noopener noreferrer",children:n.jsx(de,{children:n.jsx("img",{srcSet:`${d}?w=164&h=164&fit=crop&auto=format&dpr=2 2x`,src:`${d}?w=164&h=164&fit=crop&auto=format`,alt:a.title||"",loading:"lazy"})},d)}):n.jsx(de,{children:n.jsx("img",{srcSet:`${d}?w=164&h=164&fit=crop&auto=format&dpr=2 2x`,src:`${d}?w=164&h=164&fit=crop&auto=format`,alt:a.title||"",loading:"lazy"})},d)},d):null})})})})}const rn=j(b)`
|
|
87
|
-
.metric-number {
|
|
88
|
-
font-size: 18px;
|
|
89
|
-
font-weight: 600;
|
|
90
|
-
}
|
|
91
|
-
.metric-name {
|
|
92
|
-
font-size: 14px;
|
|
93
|
-
color: rgba(0, 0, 0, 0.6);
|
|
94
|
-
}
|
|
95
|
-
`;Me.propTypes={data:u.object.isRequired};function re({data:e,feedType:t,...r}){return n.jsxs(on,{...r,children:[t==="data-tracker"&&e.type==="table"&&n.jsx(Oe,{data:e}),(t==="graphic"||t==="gallery")&&n.jsx(Me,{data:e})]})}const on=j.div`
|
|
96
|
-
display: flex;
|
|
97
|
-
flex-direction: column;
|
|
98
|
-
width: 100%;
|
|
99
|
-
margin-bottom: 4px;
|
|
100
|
-
&:last-child {
|
|
101
|
-
margin-bottom: 0;
|
|
102
|
-
}
|
|
103
|
-
`;re.propTypes={data:u.object.isRequired,feedType:u.string};re.defaultProps={feedType:"data-tracker"};function oe({notification:e,severity:t,showSke:r=!0}){const{attachments:o,data:i}=e;if((!o||!o.length)&&B(i))return null;let s="#C4C5CA";t==="success"?s="#25C99B":t==="warning"?s="#DE9E37":t==="error"?s="#F16E6E":s="#C4C5CA";const c=a=>!a&&!Array.isArray(a)?null:a.map((d,x)=>d.type==="section"?n.jsx(f.Fragment,{children:c(d.fields)},x):n.jsx($e,{attachment:d},x));return n.jsx(sn,{leftLineColor:s,children:n.jsx("div",{className:"message-in-list",children:n.jsxs("div",{className:"left-part",children:[o.length>0&&n.jsx("div",{className:"message-container",children:n.jsx("div",{className:"attachment-container",children:c(o)})}),!B(i)&&n.jsx("div",{className:"message-container",children:n.jsx("div",{className:"data-container",children:n.jsx(re,{data:i,feedType:e.feedType})})}),o.length===0&&B(i)&&r&&n.jsx(st,{className:"attach-ske",style:{marginTop:10},variant:"rectangular",height:150})]})})})}const sn=j.div`
|
|
104
|
-
display: flex;
|
|
105
|
-
flex-direction: column;
|
|
106
|
-
.message-in-list {
|
|
107
|
-
border: 1px solid rgba(238, 238, 238, 0.5);
|
|
108
|
-
padding: 8px 8px 8px 0;
|
|
109
|
-
display: flex;
|
|
110
|
-
border-radius: 8px;
|
|
111
|
-
background: rgba(238, 238, 238, 0.5);
|
|
112
|
-
.left-part {
|
|
113
|
-
flex: 1;
|
|
114
|
-
display: flex;
|
|
115
|
-
flex-direction: column;
|
|
116
|
-
.app-name {
|
|
117
|
-
font-weight: bold;
|
|
118
|
-
margin-bottom: 4px;
|
|
119
|
-
}
|
|
120
|
-
.left-part-top {
|
|
121
|
-
display: flex;
|
|
122
|
-
align-items: center;
|
|
123
|
-
.app-name {
|
|
124
|
-
flex: 1;
|
|
125
|
-
}
|
|
126
|
-
.time {
|
|
127
|
-
font-size: 14px;
|
|
128
|
-
color: #999;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
.message-in-list-title {
|
|
132
|
-
color: #666;
|
|
133
|
-
word-break: break-all;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
.message-title {
|
|
138
|
-
color: #25292f;
|
|
139
|
-
font-size: 18px;
|
|
140
|
-
font-weight: bold;
|
|
141
|
-
word-break: break-all;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
.attach-ske {
|
|
145
|
-
position: relative;
|
|
146
|
-
margin-left: 10px;
|
|
147
|
-
&::after {
|
|
148
|
-
content: '';
|
|
149
|
-
position: absolute;
|
|
150
|
-
left: -10px;
|
|
151
|
-
top: 0;
|
|
152
|
-
height: 100%;
|
|
153
|
-
width: 4px;
|
|
154
|
-
background-color: ${e=>e.leftLineColor};
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
.message-body {
|
|
159
|
-
color: #25292f;
|
|
160
|
-
font-size: 16px;
|
|
161
|
-
word-break: break-all;
|
|
162
|
-
white-space: pre-line;
|
|
163
|
-
}
|
|
164
|
-
.message-container {
|
|
165
|
-
display: flex;
|
|
166
|
-
flex-direction: column;
|
|
167
|
-
justify-content: flex-start;
|
|
168
|
-
width: 100%;
|
|
169
|
-
position: relative;
|
|
170
|
-
&::after {
|
|
171
|
-
content: '';
|
|
172
|
-
position: absolute;
|
|
173
|
-
height: 100%;
|
|
174
|
-
width: 3px;
|
|
175
|
-
background-color: ${e=>e.leftLineColor};
|
|
176
|
-
left: 0;
|
|
177
|
-
top: 0;
|
|
178
|
-
}
|
|
179
|
-
.data-container,
|
|
180
|
-
.attachment-container {
|
|
181
|
-
display: flex;
|
|
182
|
-
flex-direction: column;
|
|
183
|
-
width: 100%;
|
|
184
|
-
margin-left: 10px;
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
.actions-container {
|
|
188
|
-
margin-top: 10px;
|
|
189
|
-
.actions-item {
|
|
190
|
-
margin-right: 8px;
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
`;oe.propTypes={severity:u.string.isRequired,notification:u.object.isRequired,showSke:u.bool};oe.defaultProps={showSke:!0};const W=e=>ve.sanitize(e,{ALLOWED_ATTR:["href","target","rel","class","id","style"]});Ae.propTypes={notification:u.object,rows:u.number};function Ae({notification:e,rows:t=2}){const[r,o]=f.useState(!1),{t:i}=Q(),s=f.useMemo(()=>{const{attachments:l}=e||{};if(!l)return!1;try{return l.length>0}catch{return!1}},[e]),c=f.useMemo(()=>{const{blocks:l}=e||{};if(!l)return!1;try{return l.length>0}catch{return!1}},[e]),a=f.useMemo(()=>{const{description:l}=e||{};return!!l},[e]),d=f.useMemo(()=>{const{data:l}=e||{};return!B(l)},[e]);if(!f.useMemo(()=>s||c||a||d,[s,c,a,d]))return null;const m=()=>t===0?"":r?`<span class='toggle-btn' data-name='toggle-expanded'>${i("common.collapse")}</span>`:`...<span class='toggle-btn' data-name='toggle-expanded'>${i("common.expand")}</span>`,p=l=>{const{target:h}=l;h.getAttribute("data-name")==="toggle-expanded"&&o(!r)};return n.jsxs(an,{children:[n.jsx(b,{className:"text-container",children:n.jsx(b,{component:"div",sx:{marginBottom:"4px"},onClick:p,children:!r&&t>0?n.jsx(Dt,{basedOn:"letters",unsafeHTML:W(xe.toClickableSpan((e==null?void 0:e.description)??"")),maxLine:t,ellipsisHTML:W(m())}):n.jsx($,{component:"div",className:`content ${t===0?"ellipsis":""}`,style:{whiteSpace:"pre-line!important",fontSize:"14px"},dangerouslySetInnerHTML:{__html:W(xe.toClickableSpan((e==null?void 0:e.description)??`${m()}`))}})})}),s||d?n.jsx(oe,{severity:e.severity,notification:e}):null]})}const an=j(b)`
|
|
194
|
-
width: 100%;
|
|
195
|
-
margin-bottom: 6px;
|
|
196
|
-
.text-container {
|
|
197
|
-
word-wrap: break-word;
|
|
198
|
-
font-size: 14px;
|
|
199
|
-
color: rgba(75, 85, 99, 1);
|
|
200
|
-
.toggle-btn {
|
|
201
|
-
display: inline-block;
|
|
202
|
-
min-width: 50px;
|
|
203
|
-
white-space: nowrap;
|
|
204
|
-
cursor: pointer;
|
|
205
|
-
margin-left: 4px;
|
|
206
|
-
font-size: 14px;
|
|
207
|
-
color: rgba(59, 130, 246, 1);
|
|
208
|
-
}
|
|
209
|
-
.content.ellipsis {
|
|
210
|
-
overflow: hidden;
|
|
211
|
-
text-overflow: ellipsis;
|
|
212
|
-
display: block
|
|
213
|
-
display: -webkit-box;
|
|
214
|
-
-webkit-box-orient: vertical;
|
|
215
|
-
max-height: 3em;
|
|
216
|
-
line-height: 1.5em;
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
`,ln=f.memo(Ae),cn={warning:"warning",error:"error",info:"primary"},ge={error:{color:D.error.main,backgroundColor:"rgba(241, 110, 110, 0.3)",border:"1px solid rgba(241, 110, 110, 0.4)"},warning:{color:D.warning.main,backgroundColor:"rgba(222, 158, 55, 0.3)",border:"1px solid rgba(222, 158, 55, 0.4)"},success:{color:D.success.main,backgroundColor:"rgba(52, 190, 116, 0.3)",border:"1px solid rgba(52, 190, 116, 0.4)"},primary:{color:D.primary.main,backgroundColor:"rgba(55, 115, 242, 0.3)",border:"1px solid rgba(55, 115, 242, 0.4)"},reverse:{color:"#fff",backgroundColor:"#222"}};function _e({status:e,...t}){if(!e||e==="info"||e==="success")return null;const r=cn[e],o=Object.assign({},ge[r]||ge.primary,{borderRadius:5});return n.jsx(pn,{component:"span",style:o,...t,children:e})}_e.propTypes={status:u.string.isRequired};const pn=j("span")`
|
|
220
|
-
&& {
|
|
221
|
-
display: inline-flex;
|
|
222
|
-
justify-content: center;
|
|
223
|
-
align-items: center;
|
|
224
|
-
padding: 2px 10px;
|
|
225
|
-
height: 20px;
|
|
226
|
-
line-height: 20px;
|
|
227
|
-
font-size: 12px;
|
|
228
|
-
font-weight: 500;
|
|
229
|
-
border-radius: 4px;
|
|
230
|
-
}
|
|
231
|
-
`;Ie.propTypes={data:u.array,blockletMap:u.object,onReadNotification:u.func,inDialog:u.bool};He.propTypes={notification:u.object,blocklet:u.object,onReadNotification:u.func,inDialog:u.bool};function He({notification:e,blocklet:t,onReadNotification:r=()=>{},inDialog:o=!1}){var m;const{locale:i}=f.useContext(I),s=at(),c=f.useMemo(()=>{const{receivers:p=[]}=e;return p.length?p[0].read:!0},[e]),a=f.useMemo(()=>{const{actions:p,action:l}=e;let h=p??[];return!h.length&&l&&(h=[{name:"Visit",link:l}]),h},[e]),d=(t==null?void 0:t.did)||((m=t==null?void 0:t.meta)==null?void 0:m.did)||"",x=(t==null?void 0:t.appId)||(t==null?void 0:t.appDid)||(t==null?void 0:t.appPid)||"";return n.jsxs(dn,{className:"notification-row",display:"flex",gap:2,sx:{padding:"8px"},onClick:()=>r(e),children:[n.jsx(mt,{variant:"dot",color:"error",invisible:c,children:t?n.jsx(b,{children:x===d?n.jsx(gt,{blocklet:t}):n.jsx(be,{blocklet:t,ancestors:t.ancestors??[]})}):n.jsx(xt,{width:"40",height:"40"})}),n.jsxs(b,{className:"notification",display:"flex",flexDirection:"column",alignItems:"start",children:[n.jsxs(b,{display:"flex",justifyContent:"start",alignItems:"center",gap:1,sx:{width:"100%"},children:[n.jsx(b,{className:"title",children:e.title}),"·",n.jsx(yt,{value:e.createdAt,locale:i,style:{color:s.palette.text.secondary,fontSize:"0.875rem",minWidth:"50px",whiteSpace:"nowrap"}})]}),e.severity!=="info"?n.jsx(_e,{className:"notification-tag",status:e.severity}):null,n.jsx(ln,{notification:e,rows:o?0:2}),a.length>0?n.jsx(b,{display:"flex",justifyContent:"start",alignItems:"center",gap:1,children:a.map((p,l)=>n.jsxs(f.Fragment,{children:[n.jsx(we,{href:p.link,target:"_blank",className:"link",sx:{fontSize:"15px"},children:p.name},p.link),l<a.length-1?n.jsx("span",{children:"·"}):null]},p.link))}):null]})]})}function Ie({data:e,blockletMap:t,onReadNotification:r=()=>{},inDialog:o=!1}){const{t:i}=Q(),s=f.useMemo(()=>o?e==null?void 0:e.slice(0,5):e,[o,e]);return e!=null&&e.length?n.jsx(b,{display:"flex",flexDirection:"column",sx:{mt:1,...o?{maxHeight:"calc(-200px + 100vh)",overflow:"auto"}:{}},children:s==null?void 0:s.map(c=>{const a=t.get(c.componentDid||c.entityId||c.sender);return n.jsx(He,{inDialog:o,notification:c,blocklet:a,onReadNotification:()=>r(c)},c.id)})}):n.jsx(ht,{children:i("common.empty")})}const dn=j(b)`
|
|
232
|
-
cursor: pointer;
|
|
233
|
-
// border-bottom: 1px solid rgba(0, 0, 0, 0.12);
|
|
234
|
-
|
|
235
|
-
&:hover {
|
|
236
|
-
background-color: rgba(0, 0, 0, 0.05);
|
|
237
|
-
border-radius: 8px;
|
|
238
|
-
}
|
|
239
|
-
.notification {
|
|
240
|
-
width: calc(100% - 50px);
|
|
241
|
-
|
|
242
|
-
.title {
|
|
243
|
-
min-width: 0;
|
|
244
|
-
overflow: hidden;
|
|
245
|
-
text-overflow: ellipsis;
|
|
246
|
-
white-space: nowrap;
|
|
247
|
-
color: rgba(3, 7, 18, 1);
|
|
248
|
-
font-size: 16px;
|
|
249
|
-
}
|
|
250
|
-
.description {
|
|
251
|
-
color: rgba(75, 85, 99, 1);
|
|
252
|
-
overflow: hidden;
|
|
253
|
-
text-overflow: ellipsis;
|
|
254
|
-
white-space: nowrap;
|
|
255
|
-
font-size: 12px;
|
|
256
|
-
transform: translateY(-1px);
|
|
257
|
-
}
|
|
258
|
-
.link {
|
|
259
|
-
color: rgba(59, 130, 246, 1);
|
|
260
|
-
font-size: 14px;
|
|
261
|
-
text-decoration: none;
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
`;ze.propTypes={paging:u.objectOf(u.any).isRequired,loading:u.bool.isRequired,onChange:u.func.isRequired};function ze({loading:e,paging:t,onChange:r}){const{t:o}=f.useContext(I);if(t.pageCount<=0)return null;const i=(a,d)=>{r({page:d+1})},s=a=>{const d=Number(a.target.value);r({page:1,pageSize:d})},c=t.page-1<=0?0:t.page-1;return n.jsx(b,{mt:2,display:"flex",justifyContent:"flex-end",children:n.jsx(bt,{disabled:e,count:t.total,page:c,rowsPerPageOptions:[10,20,50,100],labelRowsPerPage:o("pagination.rowsPerPage"),labelDisplayedRows:({from:a,to:d,count:x})=>`${a}–${d} / ${x!==-1?x:`${o()}more than ${d}`}`,rowsPerPage:t.pageSize,onPageChange:i,onRowsPerPageChange:s})})}const un=f.memo(ze);De.propTypes={selectedId:u.string,blockletMap:u.object,onSelectChange:u.func,loading:u.bool,filterType:u.oneOf(["component","entity"])};const fn=j.div`
|
|
265
|
-
display: flex;
|
|
266
|
-
justify-items: flex-start;
|
|
267
|
-
align-items: center;
|
|
268
|
-
gap: 8px;
|
|
269
|
-
.name {
|
|
270
|
-
display: block;
|
|
271
|
-
max-width: 260px;
|
|
272
|
-
white-space: nowrap;
|
|
273
|
-
overflow: hidden;
|
|
274
|
-
text-overflow: ellipsis;
|
|
275
|
-
}
|
|
276
|
-
`;function De({selectedId:e="",filterType:t="component",blockletMap:r=new Map,onSelectChange:o=()=>{},loading:i=!1}){const[s,c]=f.useState(""),{t:a}=f.useContext(I),d=p=>{if(i)return;const l=p.target.value;o(l==="all"?"":l)},x=f.useMemo(()=>{if(!r.size)return[];const p=[];return Array.from(r).forEach(([,l])=>{var O,T;const h=l.did||((O=l.meta)==null?void 0:O.did),y=l.title||((T=l.meta)==null?void 0:T.title)||"",w=l.appPid||l.appDid,L=y.toLowerCase().includes(s.toLowerCase());(t==="component"&&w!==h&&L||t==="entity"&&w===h&&L)&&p.push(l)}),p},[r,s,t]),m=f.useMemo(()=>{var l;const p=x.find(h=>{var y;return(h.did||((y=h.meta)==null?void 0:y.did))===e});return(p==null?void 0:p.did)||((l=p==null?void 0:p.meta)==null?void 0:l.did)||"all"},[x,e]);return r.size?n.jsx(vt,{sx:{minWidth:240,maxWidth:300},children:n.jsxs(wt,{MenuProps:{autoFocus:!1},value:m,onChange:d,onClose:()=>c(""),size:"small",variant:"outlined",children:[n.jsx(jt,{children:n.jsx(Ct,{autoFocus:!0,value:s,placeholder:"Search",variant:"outlined",size:"small",fullWidth:!0,onChange:p=>c(p.target.value),onKeyDown:p=>{p.key!=="Escape"&&p.stopPropagation()}})}),n.jsx(ue,{value:"all",children:a("common.all")}),x.map(p=>{var y,w;const l=p.did||((y=p.meta)==null?void 0:y.did),h=p.title||((w=p.meta)==null?void 0:w.title);return n.jsx(ue,{value:l,children:n.jsxs(fn,{children:[n.jsx(be,{size:24,blocklet:p,ancestors:p.ancestors}),n.jsx("span",{className:"name",children:h})]})},l)})]})}):null}const mn=f.memo(De),hn=j.div`
|
|
277
|
-
.MuiContainer-root {
|
|
278
|
-
padding-right: 0;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
.profile-button.MuiButtonBase-root {
|
|
282
|
-
border-radius: 9999px;
|
|
283
|
-
margin-right: 2px;
|
|
284
|
-
color: #4b5563;
|
|
285
|
-
padding: 5px 12px;
|
|
286
|
-
line-height: 22px;
|
|
287
|
-
font-size: 13px;
|
|
288
|
-
border: 1px solid transparent;
|
|
289
|
-
}
|
|
290
|
-
.profile-button.active.MuiButtonBase-root {
|
|
291
|
-
background-color: #ffffff;
|
|
292
|
-
color: #030712;
|
|
293
|
-
border: 1px solid #e5e7eb !important;
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
.profile-line-button.MuiButtonBase-root {
|
|
297
|
-
margin-right: 2px;
|
|
298
|
-
color: #4b5563;
|
|
299
|
-
padding: 5px 12px;
|
|
300
|
-
line-height: 22px;
|
|
301
|
-
font-size: 13px;
|
|
302
|
-
border: none !important;
|
|
303
|
-
border-radius: 0;
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
.profile-line-button.active.MuiButtonBase-root {
|
|
307
|
-
color: rgba(3, 7, 18, 1);
|
|
308
|
-
border-bottom: 1px solid rgba(3, 7, 18, 1) !important;
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
.profile-button.MuiButtonBase-root:last-of-type,
|
|
312
|
-
.profile-line-button.MuiButtonBase-root {
|
|
313
|
-
margin-right: 0;
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
.profile-button.MuiButtonBase-root:hover {
|
|
317
|
-
background-color: #ffffff;
|
|
318
|
-
color: #030712;
|
|
319
|
-
border: 1px solid #e5e7eb;
|
|
320
|
-
}
|
|
321
|
-
.profile-line-button.MuiButtonBase-root:hover {
|
|
322
|
-
color: rgba(3, 7, 18, 1);
|
|
323
|
-
background-color: unset;
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
* {
|
|
327
|
-
scrollbar-width: none; /* Firefox */
|
|
328
|
-
-ms-overflow-style: none; /* IE and Edge */
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
*::-webkit-scrollbar {
|
|
332
|
-
display: none; /* Chrome, Safari and Opera */
|
|
333
|
-
}
|
|
334
|
-
`;Be.propTypes={blocklets:u.array,context:u.object,pagination:u.bool,inDialog:u.bool,filterType:u.oneOf(["component","entity"]),toViewAll:u.func,tabType:u.oneOf(["button","line"]),enableMarkAllAsRead:u.bool};function Be({blocklets:e=[],context:t,pagination:r=!0,tabType:o="button",inDialog:i=!1,filterType:s="component",toViewAll:c=()=>{},enableMarkAllAsRead:a=!1}){const{data:d,paging:x,refresh:m,loading:p,params:l,onReadNotification:h,unReadCount:y,componentDids:w}=t,L=v=>{m({...l,severity:v,paging:{...l.paging,page:1}})},{t:O}=f.useContext(I),[T,ie]=f.useState(!1),Ue=async()=>{ie(!0),t.makeAllAsRead&&typeof t.makeAllAsRead=="function"&&await t.makeAllAsRead(),ie(!1)},se=f.useCallback(v=>{const{blocklet:g={}}=window,k=[g==null?void 0:g.did,...((g==null?void 0:g.ancestors)||[]).map(M=>M)];return(w==null?void 0:w.includes(v))||k.findIndex(M=>M===v)>-1},[w]),ae=f.useMemo(()=>{const v=new Map;return e.length&&e.forEach(g=>{var M,le,ce;const k=(g==null?void 0:g.did)||((M=g.meta)==null?void 0:M.did);k&&!v.has(k)&&(g.ancestors=[],v.set(k,g),((le=g==null?void 0:g.alsoKnownAs)==null?void 0:le.length)>0&&g.alsoKnownAs.forEach(S=>{v.has(S)||v.set(S,g)})),((ce=g==null?void 0:g.children)==null?void 0:ce.length)>0&&g.children.forEach(S=>{var pe;const z=(S==null?void 0:S.did)||((pe=S.meta)==null?void 0:pe.did);z&&!v.has(z)&&se(z)&&(S.ancestors=[g],v.set(z,S))})}),v},[e,se]),Fe=v=>{m({...l,paging:{...l.paging,...v}})},qe=v=>{var g,k;!v||(k=(g=v.receivers)==null?void 0:g[0])!=null&&k.read||h(v.id).then(()=>{i&&c()})},We=v=>{if(p)return;let g={};s==="component"?g={entityId:"",componentDid:v}:s==="entity"&&(g={componentDid:"",entityId:v}),m({...l,...g,paging:{...l.paging,page:1}})},Ge=ye(()=>s==="component"?l.componentDid||"":s==="entity"&&l.entityId||"",[l,s]);return n.jsxs(hn,{children:[n.jsx(je,{currentTab:l.severity,type:o,theme:"light",onSelectType:L,extra:i?null:[y>0&&a&&n.jsxs(G,{disabled:T||p,onClick:Ue,sx:{ml:"auto"},children:[T&&n.jsx(fe,{size:16,style:{marginRight:"1em"}}),O("notification.markAllAsRead")]},"make-all-read"),n.jsx(mn,{onSelectChange:We,selectedId:Ge,filterType:s,blockletMap:ae,loading:p},"component-filter")]}),p?n.jsx(b,{sx:{display:"flex",width:"100%",minHeight:400,justifyContent:"center",alignItems:"center"},children:n.jsx(fe,{sx:{color:"#4598fa"}})}):n.jsx(Ie,{data:d,blockletMap:ae,onReadNotification:qe,inDialog:i}),r?n.jsx(un,{loading:p,paging:x,onChange:Fe}):null]})}const xn=f.memo(Be);function gr(){const t=lt().tab,{t:r}=Q(),o=ct(),{makeAllAsRead:i}=o,s=ye(()=>{var c;return{...window.blocklet,meta:{did:window.blocklet.did,name:window.blocklet.did},children:(c=window==null?void 0:window.blocklet)==null?void 0:c.componentMountPoints.map(a=>({...a,meta:{...a,did:a.did,name:a.name||a.title||"",logo:"logo.png"}}))}});return f.useEffect(()=>{t==="notifications"&&i&&i()},[t,i]),n.jsxs(n.Fragment,{children:[n.jsx(pt,{children:n.jsx("title",{children:r("pageTitle.userCenter")})}),n.jsx(ft,{currentTab:t?dt(ut.WELLKNOWN_SERVICE_PATH_PREFIX,"user",t):"",disableAutoRedirect:t==="settings",children:t==="notifications"?n.jsx(xn,{blocklets:[s],context:o}):null})]})}export{gr as default};
|