@abtnode/webapp 1.16.45-beta-20250614-101901-d1700f8d → 1.16.45-beta-20250618-073451-6e48fb62
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/blocklet.js +1 -1
- package/blocklet.yml +1 -1
- package/dist/assets/{AdapterDayjs-Bb5pC0CE.js → AdapterDayjs-Cf6af3xk.js} +7 -7
- package/dist/assets/{Add-B4ZxigzZ.js → Add-BFsFN1Gy.js} +1 -1
- package/dist/assets/{ArrowDropDown-CUWlyoV4.js → ArrowDropDown-CejcJzkX.js} +1 -1
- package/dist/assets/{Autocomplete-CuIaboOl.js → Autocomplete-PeF181FR.js} +1 -1
- package/dist/assets/{Breadcrumbs-D9KOmd_k.js → Breadcrumbs-B6YSRzTf.js} +1 -1
- package/dist/assets/{ButtonGroup-Djxp9GV8.js → ButtonGroup-BzAT8pGA.js} +1 -1
- package/dist/assets/{CSSTransition-Bd8ftQ2v.js → CSSTransition-Byi2ne4y.js} +1 -1
- package/dist/assets/{CallMerge-DEaNB8FX.js → CallMerge-CaTZFXVq.js} +1 -1
- package/dist/assets/{CardContent-B3U2Afde.js → CardContent-Dk0Md6L4.js} +1 -1
- package/dist/assets/{ChevronLeft-C3iioEE4.js → ChevronLeft-CDs40tmH.js} +1 -1
- package/dist/assets/{ChevronRight-BhM33GF3.js → ChevronRight-CFfmouwT.js} +1 -1
- package/dist/assets/{Clear-bgnUq6y0.js → Clear-CmPKgcDo.js} +1 -1
- package/dist/assets/{Close-PlsqSLh4.js → Close-C8GsrnLa.js} +1 -1
- package/dist/assets/{Community-Bitv2uQh.js → Community-D1NMDj2P.js} +1 -1
- package/dist/assets/{Delete-BEDhfjgM.js → Delete-CiU1bEBu.js} +1 -1
- package/dist/assets/{DeleteOutline-BnT7fsMq.js → DeleteOutline-reI_idEa.js} +1 -1
- package/dist/assets/{Done-C9FHJdQ0.js → Done-BFMi5HXU.js} +1 -1
- package/dist/assets/{Edit-Czl2eCpM.js → Edit-BvogU5l2.js} +1 -1
- package/dist/assets/{ErrorOutline-HeG61pGN.js → ErrorOutline-CLZmnhnI.js} +1 -1
- package/dist/assets/{HelpOutline-BJqbizDQ.js → HelpOutline-hZN36iob.js} +1 -1
- package/dist/assets/{Holiday-wnrbKvDD.js → Holiday-CVr2LMMz.js} +1 -1
- package/dist/assets/{Launch-CXYVNZYv.js → Launch-BVKqak_-.js} +1 -1
- package/dist/assets/{Link-FsEUY-zQ.js → Link-C4o8Tfyg.js} +1 -1
- package/dist/assets/{ListItemButton-Cq2F-p9g.js → ListItemButton-D2V2qgeT.js} +1 -1
- package/dist/assets/{ListSubheader-DVU9b242.js → ListSubheader-BSK-B-Hs.js} +1 -1
- package/dist/assets/{LoadingButton-x-yHYRV-.js → LoadingButton-VMcNYQ8q.js} +1 -1
- package/dist/assets/{LockIcon-BKEcgaSm.js → LockIcon-C58tNgx9.js} +1 -1
- package/dist/assets/{Meeting-BzSKBr5G.js → Meeting-ocx742Wk.js} +1 -1
- package/dist/assets/{MoreHoriz-BrmAZhbC.js → MoreHoriz-CPdB-acW.js} +1 -1
- package/dist/assets/{MoreVert-D4ECIeFy.js → MoreVert-BZT8paNd.js} +1 -1
- package/dist/assets/{OffSick-u-7KRz_z.js → OffSick-a8D-sUdt.js} +1 -1
- package/dist/assets/{OpenInNew-IexFTpEO.js → OpenInNew-DJsi1NWq.js} +1 -1
- package/dist/assets/{Public-CZtu3y_2.js → Public-DSbGTo8s.js} +1 -1
- package/dist/assets/{Refresh-Dbz-_IlE.js → Refresh-BK_aBn8t.js} +1 -1
- package/dist/assets/{SchemaReference.es-COj24FRb.js → SchemaReference.es-BYITplvj.js} +1 -1
- package/dist/assets/{Search-B9sPCbKU.js → Search-DGRuo7t-.js} +1 -1
- package/dist/assets/{Slider-DoZh9gZt.js → Slider-CS-gjd3v.js} +1 -1
- package/dist/assets/{Stepper-WMlGg2XY.js → Stepper-ZCO4EB3o.js} +1 -1
- package/dist/assets/{Switch-v96fFUVN.js → Switch-CG3jQlg3.js} +1 -1
- package/dist/assets/{TableRow-DMNYoxLV.js → TableRow-Cyof88VP.js} +1 -1
- package/dist/assets/{TableSearch-CIJv0sa5.js → TableSearch-CxutcmoF.js} +1 -1
- package/dist/assets/{ToggleButtonGroup-DSjHARIe.js → ToggleButtonGroup-Dldk8U9s.js} +1 -1
- package/dist/assets/{Verified-3rFYpz5S.js → Verified-DVQjMky2.js} +1 -1
- package/dist/assets/{VerifiedUser-B0TfZPGq.js → VerifiedUser-350MitWy.js} +1 -1
- package/dist/assets/{ViewColumn-YTkBMCPT.js → ViewColumn-BSxTQVZ-.js} +1 -1
- package/dist/assets/{ViewList-Cn5h6Rj3.js → ViewList-BEu0UPsS.js} +1 -1
- package/dist/assets/{WorkingRemotely-PcnPDMUW.js → WorkingRemotely-BEw6X98n.js} +1 -1
- package/dist/assets/{_createAggregator-DvDPHTGg.js → _createAggregator-Djv2-ovu.js} +1 -1
- package/dist/assets/{actions-DKMplt8L.js → actions-DNqu-9QQ.js} +1 -1
- package/dist/assets/{actions-DWmK9-Ml.js → actions-LyrEo_Cb.js} +1 -1
- package/dist/assets/{agreement-B8JPFy7O.js → agreement-Cc4wdZqi.js} +1 -1
- package/dist/assets/api-CSrxJE-w.js +1 -0
- package/dist/assets/{appearance-BLzT9a17.js → appearance-BkddHlmf.js} +1 -1
- package/dist/assets/{ar-C_PbiO-w.js → ar-DLXKKOGO.js} +1 -1
- package/dist/assets/{audit-logs-IXBKuhDc.js → audit-logs-EkgBhSvA.js} +1 -1
- package/dist/assets/{base-chart-BjMI41fT.js → base-chart-C63mtC4Z.js} +1 -1
- package/dist/assets/{blocklet-Dj7-7T3f.js → blocklet-BzkaFDNW.js} +1 -1
- package/dist/assets/{brace-fold.es-PD8yVtZP.js → brace-fold.es-CyCMNzH4.js} +1 -1
- package/dist/assets/{chain-BHqPLd89.js → chain-DJhIX7OW.js} +2 -2
- package/dist/assets/{click-to-copy-CaV3f1zY.js → click-to-copy-CYaDSQoy.js} +1 -1
- package/dist/assets/cloneDeep-C6XYSA9m.js +1 -0
- package/dist/assets/{closebrackets.es-Ojy0KXT7.js → closebrackets.es-DvIy3kAL.js} +1 -1
- package/dist/assets/{codemirror.es-BqP83lfI.js → codemirror.es-BtJVhvPq.js} +1 -1
- package/dist/assets/{collapse-CWe0kq4t.js → collapse-BhbkfN99.js} +1 -1
- package/dist/assets/{comment.es-BVw0Jh8C.js → comment.es-BWJma_ss.js} +1 -1
- package/dist/assets/{config-navigation-BmdmCPda.js → config-navigation-DfmuKS6F.js} +3 -3
- package/dist/assets/{connect-to-BVNgPIbZ.js → connect-to-CorUs381.js} +1 -1
- package/dist/assets/{de-m_nuB8Qa.js → de-CnbmrteH.js} +1 -1
- package/dist/assets/{delete-confirm-CyLYocY4.js → delete-confirm-D2071wW2.js} +1 -1
- package/dist/assets/{detail-DI40x12E.js → detail-BgptcQe2.js} +3 -3
- package/dist/assets/{dialog.es-kGJe5bqp.js → dialog.es-DNRuZxpL.js} +1 -1
- package/dist/assets/{domains-CXyEkw33.js → domains-Dw6WVrfK.js} +2 -2
- package/dist/assets/{download-C9GUXLGP.js → download-mU0RETFZ.js} +1 -1
- package/dist/assets/emotion-react.browser.esm-CSjORkdU.js +1 -0
- package/dist/assets/{es-BrT673RG.js → es-C7oXJBWv.js} +1 -1
- package/dist/assets/{foldgutter.es-BHJeM3tK.js → foldgutter.es-BfaddajE.js} +1 -1
- package/dist/assets/{fr-BmbyLkZB.js → fr-DzleTcLj.js} +1 -1
- package/dist/assets/{get-safe-url-0JvnPl3q.js → get-safe-url-COP_ZxQz.js} +1 -1
- package/dist/assets/{get-safe-url-C9_OIoJO.js → get-safe-url-DS1bGOO2.js} +1 -1
- package/dist/assets/getValidReactChildren-CxwCdnNW.js +1 -0
- package/dist/assets/{hi-CL8_a9An.js → hi-B24wH0bs.js} +1 -1
- package/dist/assets/{hint.es-k_cAqmy-.js → hint.es-DhVyUt1d.js} +1 -1
- package/dist/assets/{hint.es2-Li9KpSNj.js → hint.es2-uDqXrloM.js} +1 -1
- package/dist/assets/{id-DkcL27A7.js → id-BIjW1vW9.js} +1 -1
- package/dist/assets/{iframe-DcIfpfxi.js → iframe-D-LcA3MK.js} +1 -1
- package/dist/assets/{index-GUAc0qkG.js → index-4aFZazff.js} +1 -1
- package/dist/assets/{index-CmNGzNDe.js → index-5OOYkflw.js} +1 -1
- package/dist/assets/{index-rKYT_6qC.js → index-B-SlNWYL.js} +1 -1
- package/dist/assets/{index-C4MaKi4X.js → index-B0UMNJnN.js} +1 -1
- package/dist/assets/{index-B2VuOb4T.js → index-B8IA5mbU.js} +99 -99
- package/dist/assets/{index-CC7YYufc.js → index-BIgkt_q9.js} +1 -1
- package/dist/assets/{index-rbUoQ9gl.js → index-BJQjXoNM.js} +1 -1
- package/dist/assets/{index-BzVT2Nrg.js → index-BOH-YtOs.js} +1 -1
- package/dist/assets/{index-t1Vs8IVi.js → index-BRvaeUvs.js} +3 -3
- package/dist/assets/{index-DVL9-eIW.js → index-BZMWcUCX.js} +1 -1
- package/dist/assets/{index-CGeoqmfc.js → index-BblGFvvF.js} +1 -1
- package/dist/assets/{index-C7vEHTkF.js → index-BcbNijWK.js} +1 -1
- package/dist/assets/{index-BKWicGJw.js → index-BhAPLn1b.js} +1 -1
- package/dist/assets/{index-COwBBm-4.js → index-BkRO05--.js} +1 -1
- package/dist/assets/index-C0dOEsU4.js +345 -0
- package/dist/assets/{index-DtX1Yh2-.js → index-C5ZlPR3p.js} +5 -5
- package/dist/assets/{index-_5_Ps15_.js → index-C9buY914.js} +1 -1
- package/dist/assets/{index-Dks6FN1E.js → index-C9oR1oH6.js} +1 -1
- package/dist/assets/{index-Xier6ImM.js → index-CCINW9gm.js} +3 -3
- package/dist/assets/{index-DCqblcAS.js → index-CFkoE5Gw.js} +1 -1
- package/dist/assets/{index-BzzcpDqF.js → index-CHPEHw0Y.js} +1 -1
- package/dist/assets/{index-7_3PwYKM.js → index-CW7SH6ZA.js} +1 -1
- package/dist/assets/{index-D3lJNxw1.js → index-CZ5-hnEn.js} +1 -1
- package/dist/assets/{index-DjL5W4NV.js → index-Cb3Huyfb.js} +1 -1
- package/dist/assets/{index-BTaOViYK.js → index-CdU6oLkY.js} +1 -1
- package/dist/assets/{index-DqV66qpx.js → index-CeNoqA4g.js} +1 -1
- package/dist/assets/{index-BF4vf6id.js → index-Cy666DOY.js} +1 -1
- package/dist/assets/{index-Cxh7-j7t.js → index-D6ARqm6f.js} +1 -1
- package/dist/assets/index-DCo8_mUx.js +1 -0
- package/dist/assets/{index-BR_bwH6y.js → index-DNITJyFR.js} +1 -1
- package/dist/assets/{index-DTZE29O1.js → index-DOsDgrew.js} +3 -3
- package/dist/assets/{index-CZL8t7rK.js → index-DU-OQYbG.js} +1 -1
- package/dist/assets/{index-DDEC_Kd4.js → index-DUIS5TWY.js} +2 -2
- package/dist/assets/{index-BV-U1IGg.js → index-DVrUurys.js} +1 -1
- package/dist/assets/{index-C6uxeWL5.js → index-DbTX57bM.js} +1 -1
- package/dist/assets/{index-DPbR5J86.js → index-DrxRISPM.js} +3 -3
- package/dist/assets/index-Dyvb9fH4.js +521 -0
- package/dist/assets/{index-CW8V_EzA.js → index-LcQ1y9fq.js} +1 -1
- package/dist/assets/{index-vcSSPl4z.js → index-P1DlwKGv.js} +1 -1
- package/dist/assets/{index-B9KZI2SN.js → index-QU1qCf8F.js} +1 -1
- package/dist/assets/{index-DS43ilTD.js → index-czhxiIDF.js} +1 -1
- package/dist/assets/{index-Cd18MmSj.js → index-fHnSssqp.js} +2 -2
- package/dist/assets/{index-CQ-h8qjE.js → index-oBJqRsld.js} +1 -1
- package/dist/assets/{index-vaiRdcM2.js → index-oc5ucOuy.js} +1 -1
- package/dist/assets/{index-QorDXsuU.js → index-qfTOhIhQ.js} +1 -1
- package/dist/assets/{index-eb0zP4qu.js → index-rZ1SBrH_.js} +1 -1
- package/dist/assets/{index-Xck-gZ1a.js → index-zsz18EZU.js} +1 -1
- package/dist/assets/{index.esm-C-ANFUiM.js → index.esm-F8b32K2k.js} +1 -1
- package/dist/assets/{info-addon.es-Clfe_YEr.js → info-addon.es-CPDzNYQ-.js} +1 -1
- package/dist/assets/{info.es-DTVoe_8d.js → info.es-B-z85utp.js} +1 -1
- package/dist/assets/{install-from-url-hREB3CNT.js → install-from-url-BNqF6NV-.js} +1 -1
- package/dist/assets/{invitation-DH-VnVbf.js → invitation-qmFlHZV_.js} +1 -1
- package/dist/assets/is-path-prefix-equal-lgGkNkcR.js +1 -0
- package/dist/assets/{item-DUsLqUoz.js → item-DuGkpxdL.js} +1 -1
- package/dist/assets/{ja-BVJLb0qY.js → ja-mu0bc5Fx.js} +1 -1
- package/dist/assets/{javascript.es-CSk381y5.js → javascript.es-DwEw3iuE.js} +1 -1
- package/dist/assets/{jump-to-line.es-CX5j92XC.js → jump-to-line.es-BaO-Qct6.js} +1 -1
- package/dist/assets/{jump.es-BfbIZisJ.js → jump.es-DEVhkMqg.js} +1 -1
- package/dist/assets/{ko-Dd2Xcc8p.js → ko-CSWdQF8q.js} +1 -1
- package/dist/assets/{lint.es-FISSx6VT.js → lint.es-DNf7-y3f.js} +1 -1
- package/dist/assets/{lint.es2-CeclGLqm.js → lint.es2-CkGacl6V.js} +1 -1
- package/dist/assets/{lint.es3-BcqYL5Qv.js → lint.es3-ddr9rdgz.js} +1 -1
- package/dist/assets/{list-header-BQri46Fq.js → list-header-DL9A5VcR.js} +1 -1
- package/dist/assets/{log-QERiX60g.js → log-JH4lXNVE.js} +1 -1
- package/dist/assets/{lottie-react.esm-DapLVKwh.js → lottie-react.esm-Dr-WheMr.js} +1 -1
- package/dist/assets/{matchbrackets.es-COCwyBKy.js → matchbrackets.es-XuVMbpLz.js} +1 -1
- package/dist/assets/{memory-wfA3c894.js → memory-C_p3X92I.js} +1 -1
- package/dist/assets/{metric-ke_EHR4Y.js → metric-CB_GPXBA.js} +1 -1
- package/dist/assets/{mode.es-DYykbCE6.js → mode.es-Dqrxjy1v.js} +1 -1
- package/dist/assets/{mode.es2-BnJH50Gn.js → mode.es2-VNAXkQps.js} +1 -1
- package/dist/assets/{mode.es3-DJdTbbcR.js → mode.es3-BN6h3Bus.js} +1 -1
- package/dist/assets/omit-Bc4_KMtF.js +1 -0
- package/dist/assets/{onlineParser.es-BVyIjImU.js → onlineParser.es-D4el_PBT.js} +1 -1
- package/dist/assets/{overview-BtSGdVcw.js → overview-BXzzQmbs.js} +1 -1
- package/dist/assets/{permission-DTthelu1.js → permission-JEjDz9i9.js} +1 -1
- package/dist/assets/{preference-Bx-c5Q2Y.js → preference-QWJp9UJS.js} +3 -3
- package/dist/assets/{pt-BfbUt_Nx.js → pt-Odg8daEV.js} +1 -1
- package/dist/assets/{raf-schd.esm-BirpSuOr.js → raf-schd.esm-D-4-98oh.js} +3 -3
- package/dist/assets/refType-Dqlqmha-.js +1 -0
- package/dist/assets/{resource-dialog-BNbaaEXt.js → resource-dialog-BSxf3l0v.js} +17 -17
- package/dist/assets/{ru-uXrAFAz0.js → ru-OkiNIvy3.js} +1 -1
- package/dist/assets/{runtime-COg1Abce.js → runtime-DFh8uNkc.js} +1 -1
- package/dist/assets/sdk-DtMj7H7_.js +1 -0
- package/dist/assets/{search.es-DKkeTaVT.js → search.es-CvgIaw00.js} +1 -1
- package/dist/assets/{searchcursor.es-ByhbK73r.js → searchcursor.es-OCU4Stl-.js} +1 -1
- package/dist/assets/{service-DE1KFi16.js → service-C2aUE-9d.js} +1 -1
- package/dist/assets/{shorten-label-CWvoYJOM.js → shorten-label-DEXH98Sk.js} +1 -1
- package/dist/assets/{show-hint.es-CikFU7Mi.js → show-hint.es-Ddp99Kzq.js} +1 -1
- package/dist/assets/{simple-select-Dmiac-kN.js → simple-select-DtUilbs1.js} +1 -1
- package/dist/assets/{spaces-NBDzWy_B.js → spaces-C01mORkW.js} +1 -1
- package/dist/assets/{status-BEZ5kRKV.js → status-DaQfjPiw.js} +1 -1
- package/dist/assets/{status-CdtY8xKO.js → status-DwmHBBa8.js} +1 -1
- package/dist/assets/{sublime.es-D6CyioOW.js → sublime.es-D01aXBye.js} +1 -1
- package/dist/assets/{switch-control-B3dTSZzV.js → switch-control-BUF_yGeD.js} +1 -1
- package/dist/assets/{table-icons-DmDNBvmp.js → table-icons-C5qrNAvA.js} +1 -1
- package/dist/assets/{team-B2fYu72j.js → team-BcbX_cMl.js} +1 -1
- package/dist/assets/{th-BnT_StPj.js → th-esLoaeiE.js} +1 -1
- package/dist/assets/{toLower-Bj4rzzyW.js → toLower-GSZ9DJJ3.js} +1 -1
- package/dist/assets/toUpper-BPMwwnP-.js +1 -0
- package/dist/assets/{traffic-BSoP7glH.js → traffic-CTPgH40k.js} +1 -1
- package/dist/assets/{url-evaluation-BzcyBhf_.js → url-evaluation-DmRIkzYe.js} +1 -1
- package/dist/assets/{url-join-Cbra-UZX.js → url-join-BSWLYThb.js} +1 -1
- package/dist/assets/{use-mobile-DWCwqlKP.js → use-mobile-DU80Jj4U.js} +1 -1
- package/dist/assets/{use-mobile-pZqk7eRQ.js → use-mobile-DxY5BxAJ.js} +1 -1
- package/dist/assets/{useAsync-Ca6qreJM.js → useAsync-Ct1xKput.js} +1 -1
- package/dist/assets/{useAsyncRetry-HZ7iBUko.js → useAsyncRetry-Bis_hMS7.js} +1 -1
- package/dist/assets/{useLocalStorage-DGcI4VdJ.js → useLocalStorage-CRy7LFYG.js} +1 -1
- package/dist/assets/{useThemeProps-CdW8lLMN.js → useThemeProps-C3mE_-3Z.js} +1 -1
- package/dist/assets/{util-iDYYpKIQ.js → util-Ctz_J-u1.js} +1 -1
- package/dist/assets/{vi-DmitUjjk.js → vi-BF6u6-98.js} +1 -1
- package/dist/assets/{wait-container-2rrLmbus.js → wait-container-Der-CqPb.js} +1 -1
- package/dist/assets/{withStyles-eNVHMShy.js → withStyles-DWhl0Lx-.js} +1 -1
- package/dist/assets/{without-wallet-XldJKqJH.js → without-wallet-Bmmbgqin.js} +1 -1
- package/dist/assets/wrap-locale-rE7v3anU.js +1 -0
- package/dist/assets/{zh-syG1cNt6.js → zh-DJTjvgj8.js} +1 -1
- package/dist/assets/{zh-tw-DnHJQaoN.js → zh-tw-B7cFexwg.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +1 -1
- package/dist/assets/api-C1uJD3Ou.js +0 -1
- package/dist/assets/cloneDeep-D9FrtSv6.js +0 -1
- package/dist/assets/emotion-react.browser.esm-zhWsWQqH.js +0 -1
- package/dist/assets/getValidReactChildren-BK3p7HMr.js +0 -1
- package/dist/assets/index-5pv_o6Yt.js +0 -521
- package/dist/assets/index-BRRY3VLK.js +0 -1
- package/dist/assets/index-DRSI6DIa.js +0 -345
- package/dist/assets/is-path-prefix-equal-C_kpxZAH.js +0 -1
- package/dist/assets/omit-fcUn_miO.js +0 -1
- package/dist/assets/refType-Dh8-m1kl.js +0 -1
- package/dist/assets/sdk-BW91rmDS.js +0 -1
- package/dist/assets/toUpper-twB6RYx8.js +0 -1
- package/dist/assets/wrap-locale-Dg2PW6uW.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{an as ee,z as q,r as p,a as te,b as se,P as b,m as j,u as w,w as oe,az as _,J as O,j as t,v as W,aA as re,x as y,k as R,D as M,aB as ne,aC as ae,B as z,C as V,aD as le,A as K,Z as G,aE as ie,aF as ce,N as E,aG as ue,F as de,aH as D,g as pe,aI as he,n as H,ac as fe,a7 as me,a9 as ge,aa as xe,aJ as be,ab as ke}from"./index-
|
|
1
|
+
import{an as ee,z as q,r as p,a as te,b as se,P as b,m as j,u as w,w as oe,az as _,J as O,j as t,v as W,aA as re,x as y,k as R,D as M,aB as ne,aC as ae,B as z,C as V,aD as le,A as K,Z as G,aE as ie,aF as ce,N as E,aG as ue,F as de,aH as D,g as pe,aI as he,n as H,ac as fe,a7 as me,a9 as ge,aa as xe,aJ as be,ab as ke}from"./index-B8IA5mbU.js";import{_ as B}from"./useLocalStorage-CRy7LFYG.js";import{c as ye,C as Se,A as je,j as we,a as ve,d as Pe,B as Re,S as J,b as Ce,e as Be}from"./item-DuGkpxdL.js";import{g as T}from"./get-safe-url-DS1bGOO2.js";import{P as Q}from"./permission-JEjDz9i9.js";import{d as Le}from"./ArrowDropDown-CejcJzkX.js";import{B as De}from"./Breadcrumbs-B6YSRzTf.js";import"./ChevronLeft-CDs40tmH.js";import"./ChevronRight-CFfmouwT.js";import"./Search-DGRuo7t-.js";import"./index-DbTX57bM.js";import"./blocklet-BzkaFDNW.js";import"./Autocomplete-PeF181FR.js";import"./ListSubheader-BSK-B-Hs.js";import"./Verified-DVQjMky2.js";import"./VerifiedUser-350MitWy.js";import"./Add-BFsFN1Gy.js";import"./Launch-BVKqak_-.js";import"./Done-BFMi5HXU.js";import"./DeleteOutline-reI_idEa.js";import"./delete-confirm-D2071wW2.js";import"./click-to-copy-CYaDSQoy.js";import"./MoreVert-BZT8paNd.js";import"./get-safe-url-COP_ZxQz.js";import"./ButtonGroup-BzAT8pGA.js";import"./getValidReactChildren-CxwCdnNW.js";function Ee(e){const r=ee(),c=q(),[s,o]=B(`sid:blocklet:purchase:${e}`),[a,u]=p.useState(!1),[h,l]=p.useState(null),f=()=>{const{pathname:n,searchParams:d}=new URL(window.location.href),i=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";d.get("sid")&&(o(""),c(n.replace(i,"/"),{replace:!0}))},m=!!(r.get("assetDid")&&s&&r.get("sid")===s);return te(se.BlockletEvents.purchaseChange,n=>{n.did===e&&(l(n.session),["declined","confirmed","error"].includes(n.session.status)&&(u(!0),setTimeout(f,2e3)))}),p.useEffect(()=>{h&&h.id!==s&&o(h.id)},[h]),{hasCompleted:a,hasPurchased:m,session:h,setSession:l,doRedirect:f}}function U({meta:e,onCancel:r,handlePaySuccess:c,storeUrl:s}){const{t:o}=j(),{info:a}=w(),[u,h]=p.useState("both"),[l,f]=p.useState(1),m=oe(a),n=_(e,a,s),d=P=>{P!==u&&h(P)},i=()=>{u&&(f(2),u==="verify"&&(window.location.href=T(n)))},k=(P,L)=>{L!=="backdropClick"&&r()},v=()=>{c(n)},g=O.getDisplayName({meta:e});if(u==="purchase"&&l===2)return t.jsx(W,{open:!0,popup:!0,baseUrl:s,action:"acquire-asset",checkFn:re.create({baseURL:y(s,"/store")}).get,onSuccess:v,onClose:r,checkTimeout:60*5e3,extraParams:{factory:e.nftFactory},webWalletUrl:m,disableClose:!0,saveConnect:!1,showDownload:!1,messages:{title:o("store.purchase.auth.title",{name:g}),scan:o("store.purchase.auth.scan"),confirm:o("store.purchase.auth.confirm"),success:t.jsxs(t.Fragment,{children:[t.jsx(R,{gutterBottom:!0,children:o("store.purchase.auth.success")}),t.jsxs(R,{variant:"subtitle2",children:[" ",o("store.purchase.autoLaunch",{name:g})]})]})}});const x=M;return t.jsx(x,{title:o("store.purchase.title",{name:g}),disableEscapeKeyDown:!0,open:!0,fullWidth:!0,onClose:k,children:t.jsx("div",{style:{marginBottom:16},children:t.jsx(Se,{action:u,onNext:i,onSelect:d})})})}U.propTypes={...ye,storeUrl:b.string.isRequired,handlePaySuccess:b.func};U.defaultProps={handlePaySuccess:e=>{setTimeout(()=>{window.location.href=T(e,{allowDomains:null})},1e3)}};function I({meta:e,buttonText:r,storeUrl:c,isResource:s}){const{t:o}=j(),a=q(),{info:u}=w(),{api:h}=ne(),l=O.isFreeBlocklet(e)===!1,[f,m]=p.useState(!1),{hasPurchased:n}=Ee(e.did),[d,i]=p.useState(!1),[k]=B("instant-blocklet-install",!1),[v,g]=p.useState(!1),x=p.useMemo(()=>f?o(l?"blocklet.status.purchasing":"blocklet.status.waiting"):"",[f,o,l]),P=p.useMemo(()=>s?o("blocklet.status.resource"):l?r.purchase:r.launch,[l,r,s]),L=S=>{S.preventDefault(),S.stopPropagation();try{if(m(!0),l){i(!0);return}if(k){g(!0);return}if(!l){const C=_(e,u,c);window.location.href=T(C)}}catch(C){K.error(G(C),{autoHideDuration:5e3}),console.error("Blocklet installed failed",C)}finally{m(!1)}},Y=()=>{m(!1),i(!1)},Z=S=>{m(!1),g(!1),a(`/blocklets/${S.appDid}/components`)},X=()=>{m(!1),g(!1)};return t.jsxs(t.Fragment,{children:[t.jsx(je,{children:t.jsx(Q,{permission:"mutate_blocklets",children:S=>t.jsx(ae,{title:s?o("launchBlocklet.error.resourceBlocklet"):"",children:t.jsx(z,{onClick:L,size:"small",sx:{cursor:s?"not-allowed":"pointer",overflow:"hidden"},disabled:!!(x||!S),variant:"outlined",color:"primary","data-cy":"install-blocklet",children:x?t.jsxs(t.Fragment,{children:[t.jsx(V,{size:16,style:{marginRight:3}}),x]}):P},e.did)})})}),(n||d)&&t.jsx(U,{method:"launch",meta:e,mode:"both",onCancel:Y,storeUrl:c}),v&&t.jsx(W,{popup:!0,open:!0,forceConnected:!1,className:"launch-from-url-auth",action:"launch-free-blocklet-by-session",checkFn:h.get,checkTimeout:5*60*1e3,onSuccess:Z,extraParams:{title:e.title,blockletMetaUrl:decodeURIComponent(le(c,e.did).trim())},messages:{title:o("setup.keyPair.title"),scan:o("setup.keyPair.scan"),confirm:o("setup.keyPair.confirm"),success:o("setup.keyPair.success")},onClose:X})]})}I.propTypes={isResource:b.bool,meta:b.object.isRequired,buttonText:b.shape({purchase:b.string.isRequired,launch:b.string.isRequired}).isRequired,storeUrl:b.string.isRequired};I.defaultProps={isResource:!1};const Te=(e,r,c)=>{const s=fe(r);return y(c,`/blocklets/${e.did}/?server-url=${s}`)},$=({meta:e,attribute:r,value:c})=>e._formatted?e._formatted[r]:c,Ue=(e,r)=>{if(!e||!r)return"";try{return y(r,e)}catch(c){return console.warn("Failed to construct avatar URL:",c),""}};function F({blocklet:e,endpoint:r,serverVersion:c}){var n,d;const{t:s}=j(),o=w();let a=y(o.imgPrefix,"blocklet.png");const u=r;if(u.startsWith("http")&&e.logo)a=y(u,ue(e.did,e.logo,e.version));else{let k=(window.env.apiPrefix||"/").replace(/^\/+/,"").replace(/\/+$/,"");k&&(k=`/${k}`),a=y(k,`/blocklet/logo/${e.did}`)}try{const i=new URL(a);i.searchParams.set("v",e.version||+new Date),a=i.href}catch{}const h=(o==null?void 0:o.info.mode)!==de.NODE_MODES.SERVERLESS,l=i=>i.currentTarget.contains(i.target)?!0:(i.preventDefault(),!1),f={meta:e,buttonText:{purchase:s("common.purchase"),launch:s("common.launch")},storeUrl:u};let m=null;return h&&(m=t.jsx("div",{style:{display:"flex",alignItems:"center"},children:t.jsx(ve,{serverVersion:c,requirementVersion:(n=e.requirements)==null?void 0:n.server,size:"small",children:t.jsx(I,{isResource:!(D.hasStartEngine(e)||D.isGatewayBlocklet(e)||D.isPackBlocklet(e)),...f})})})),t.jsx(pe,{href:Te(e,o.info,r),style:{color:"initial",textDecoration:"none"},onClick:l,target:"_blank",children:t.jsx(Ie,{title:$({meta:e,attribute:"title",value:e.title||e.name}),did:e.did,description:$({meta:e,attribute:"description",value:e.description}),cover:e.logo?a:"",version:e.version,onButtonClick:null,icons:(d=e.docker)!=null&&d.image?[{key:"docker",icon:t.jsx(E,{display:"flex",color:"primary.main",children:t.jsx(he,{icon:Pe})}),title:s("blocklet.dockerImage")}]:[],official:e.isOfficial?{tooltip:s("blocklet.component.isOfficial")}:void 0,author:e.owner.fullName,avatar:Ue(e.owner.avatar,r),download:e.stats.downloads,button:m})})}F.propTypes={blocklet:b.object.isRequired,serverVersion:b.string,endpoint:b.string};F.defaultProps={endpoint:"",serverVersion:""};function A({storeUrl:e,handleSearchSelect:r,extraFilter:c,...s}){var n;const{locale:o}=j(),a=w(),[u,h]=p.useState({}),l=d=>{h(d)},f=e,m=(n=a==null?void 0:a.info)==null?void 0:n.version;return p.useEffect(()=>{h({})},[f]),t.jsx(ie,{FallbackComponent:ce,resetKeys:[f],children:t.jsx(E,{...s,sx:{"& .title-bar":{pt:0},".blocklet-list":{mt:0},"& h2":{display:"none"}},children:t.jsx(we,{layout:{showExplore:!1,showTitle:!0},blockletRender:d=>{const i={...d,endpoint:f};return t.jsx(F,{...i})},baseSearch:!0,endpoint:f,locale:o,onFilterChange:l,onSearchSelect:r,filters:u,extraFilter:c,serverVersion:m})})})}A.propTypes={storeUrl:b.string.isRequired,handleSearchSelect:b.func,extraFilter:b.func};A.defaultProps={handleSearchSelect:null,extraFilter:void 0};const Ie=H(Re)`
|
|
2
2
|
.ms-highlight {
|
|
3
3
|
color: ${e=>e.theme.palette.primary.main};
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e,cF as v,N as j,z as P,r as l,e as S,aB as w,u as k,w as b,am as E,aU as U,dr as K,cv as u,bd as W,v as _,$ as R,C as F,ds as L,dt as N}from"./index-
|
|
1
|
+
import{j as e,cF as v,N as j,z as P,r as l,e as S,aB as w,u as k,w as b,am as E,aU as U,dr as K,cv as u,bd as W,v as _,$ as R,C as F,ds as L,dt as N}from"./index-B8IA5mbU.js";import{R as d}from"./index-D6ARqm6f.js";function a({children:r,...s}){var o,c;return e.jsx(v,{...s,did:((o=window==null?void 0:window.blocklet)==null?void 0:o.appPid)||((c=window==null?void 0:window.env)==null?void 0:c.appPid),children:e.jsx(j,{sx:{maxWidth:"100%",height:"100%"},children:r})})}function T(){const r=P(),{t:s,locale:o}=l.useContext(S),{api:c}=w(),{info:p}=k(),f=b(p),h=E(),n=U({ready:!1,success:!1,error:null,invalidSession:!1}),i=K(),m=()=>{try{const t=new URL(window.location.href);if(t.hash.includes("invalid")){n.invalidSession=!0;return}const g=t.searchParams.get("__connect_url__"),y=L(g);if(!N(y))throw new Error;n.ready=!0}catch{n.invalidSession=!0,r("#invalid",{replace:!0})}};l.useLayoutEffect(()=>m(),[]);const x=u(t=>{n.error=t.message,r("#invalid",{replace:!0})}),C=u(()=>{n.success=!0});if(n.invalidSession)return e.jsx(a,{children:e.jsx(d,{style:{backgroundColor:"transparent"},status:"error",title:s("didConnect.common.invalidSession"),description:s("didConnect.common.invalidSessionDesc")})});if(n.error){const t=n.error;return e.jsx(a,{children:e.jsx(d,{style:{backgroundColor:"transparent"},status:"error",title:s("didConnect.common.connectionError"),description:t})})}return n.success?e.jsx(a,{children:e.jsx(d,{style:{backgroundColor:"transparent"},status:"info",icon:e.jsx(W,{style:{color:h.palette.success.main,fontSize:72}}),title:s("didConnect.genKeyPair.success"),description:s("didConnect.genKeyPair.successDesc")})}):n.ready?e.jsx(a,{children:e.jsx(_,{className:"connect",action:"gen-key-pair",checkFn:c.get,checkTimeout:10*60*1e3,extraParams:{sourceAppPid:i==null?void 0:i.appPid,forceSwitch:!0},saveConnect:!1,forceConnected:!1,webWalletUrl:f,onSuccess:C,onError:x,locale:o,messages:{title:s("didConnect.genKeyPair.title"),scan:s("didConnect.genKeyPair.scan"),confirm:s("auth.confirm"),success:s("didConnect.genKeyPair.success")},popup:!0,open:!0,hideCloseButton:!0})},"ready"):e.jsx(R,{children:e.jsx(F,{})})}export{T as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{br as St,r as x,bD as X,bj as U,A as V,F as L,j as e,P as d,T as Ct,aQ as Je,aR as Ze,ax as Nt,h as ne,aC as wt,k as G,N as v,m as J,ej as _e,Q as Be,kI as et,bo as Ee,aZ as De,X as Ae,ep as we,b8 as Ge,b6 as Oe,C as tt,n as re,f as st,dB as nt,aU as Le,W as Tt,aw as at,kJ as it,B as ke,kK as ot,g3 as Se,gk as rt,aj as fe,ff as Rt,ay as It,G as Ye,kL as Et,kM as Dt,D as lt,kN as At,kO as Ot,kP as Lt,kQ as kt,R as Pt,bx as ct,S as Ft,U as _t,V as Qe,M as Bt,kR as zt,a5 as Wt}from"./index-B2VuOb4T.js";import{l as Mt,D as dt,g as qt}from"./index-Xck-gZ1a.js";import{a as ze,c as Kt}from"./actions-DKMplt8L.js";import{B as Ut}from"./index-DDEC_Kd4.js";import{S as xe}from"./shorten-label-CWvoYJOM.js";import{I as ut}from"./index-eb0zP4qu.js";import{T as $t}from"./index-BF4vf6id.js";import{d as Ht}from"./Refresh-Dbz-_IlE.js";import{D as Vt,g as Gt}from"./traffic-BSoP7glH.js";import{u as Yt}from"./use-mobile-pZqk7eRQ.js";import"./TableRow-DMNYoxLV.js";import"./useThemeProps-CdW8lLMN.js";import"./emotion-react.browser.esm-zhWsWQqH.js";import"./ViewColumn-YTkBMCPT.js";import"./Search-B9sPCbKU.js";import"./Clear-bgnUq6y0.js";import"./Delete-BEDhfjgM.js";import"./index-C6uxeWL5.js";import"./MoreVert-D4ECIeFy.js";import"./TableSearch-CIJv0sa5.js";import"./useLocalStorage-DGcI4VdJ.js";import"./get-safe-url-0JvnPl3q.js";import"./ButtonGroup-Djxp9GV8.js";import"./getValidReactChildren-BK3p7HMr.js";import"./url-evaluation-BzcyBhf_.js";import"./permission-DTthelu1.js";import"./index.esm-C-ANFUiM.js";import"./collapse-CWe0kq4t.js";import"./blocklet-Dj7-7T3f.js";import"./Switch-v96fFUVN.js";import"./iframe-DcIfpfxi.js";import"./ChevronLeft-C3iioEE4.js";import"./ChevronRight-BhM33GF3.js";import"./index-C4MaKi4X.js";import"./base-chart-BjMI41fT.js";import"./index-DjL5W4NV.js";import"./AdapterDayjs-Bb5pC0CE.js";import"./CSSTransition-Bd8ftQ2v.js";import"./refType-Dh8-m1kl.js";const pt=x.createContext({}),{Provider:Qt,Consumer:pn}=pt;function Xt({children:t,blocklet:s=""}){const{api:n,inService:o,ws:{useSubscription:r}}=St(),[l,b]=x.useState([]),[u,D]=x.useState({total:0,pageSize:20,pageCount:0,page:1}),f=X(()=>{var p;return(p=s.meta)==null?void 0:p.did},[s]),[C,N]=x.useState([]),[B,z]=x.useState({}),E=X(()=>l.length?new Set(l.map(p=>p.id)):new Set,[l]),Y=async({page:p=1,pageSize:S=20,...A}={})=>{if(!f)return[];try{const w={paging:{page:p,pageSize:S},...A,teamDid:f,dateRange:A.dateRange?[U(A.dateRange[0]).toISOString(),U(A.dateRange[1]).toISOString()]:void 0},{dids:O,..._}=w;let Z="";O&&O.includes("system")&&(Z="system");const W=O?O.filter(le=>le!=="system"):[],ae={..._,source:Z,componentDids:W},se=await n.getNotificationSendLog({input:ae});return z(ae),b(se.list),D(se.paging),se.list}catch(w){return V.error(w.message),[]}},P=async()=>{const p=await n.getNotificationComponents({input:{teamDid:f}});N(p.componentDids)},k=x.useCallback(p=>{const S=s.children.find(A=>{var w;return((w=A.meta)==null?void 0:w.did)===p});if(S)return S.ancestors=[s],S},[s]),I=async({notificationId:p,receivers:S,channels:A,...w})=>{await n.resendNotification({input:{teamDid:f,notificationId:p,receivers:S,channels:A.map(O=>O==="wallet"?L.NOTIFICATION_SEND_CHANNEL.WALLET:O==="pushKit"?L.NOTIFICATION_SEND_CHANNEL.PUSH:O),...w}})},$=x.useCallback(async p=>(await n.getUser({input:{teamDid:f,user:{did:p}}})).user,[n,f]),Q=x.useCallback(async({page:p=1,pageSize:S=20,...A}={})=>{try{const w={paging:{page:p,pageSize:S},...A,userName:A.searchText||"",teamDid:f,dateRange:A.dateRange?[U(A.dateRange[0]).toISOString(),U(A.dateRange[1]).toISOString()]:void 0};return await n.getReceivers({input:w})}catch(w){throw V.error(w.message),w}},[n,f]);x.useEffect(()=>{f&&P()},[f]),r(L.EVENTS.NOTIFICATION_BLOCKLET_UPDATE,p=>{E.has(p.notificationId)&&Y(B)},[E,B]),r(L.EVENTS.NOTIFICATION_BLOCKLET_CREATE,p=>{E.has(p.id)||Y(B)},[E,B]);const te={fetch:Y,data:l,paging:u,blocklet:s,getComponent:k,resendNotification:I,getUser:$,componentDids:C,getReceivers:Q,inService:o,teamDid:f};return e.jsx(Qt,{value:{notificationRecords:te},children:t})}function We(){const{notificationRecords:t}=x.useContext(pt);return t}be.propTypes={severity:d.oneOf(Object.values(["info","success","error","warning"])).isRequired};const Jt={info:"primary",success:"success",error:"error",warning:"warning"};function be({severity:t="info"}){return e.jsx(Ct,{type:Jt[t],children:t})}var Me={},Zt=Ze;Object.defineProperty(Me,"__esModule",{value:!0});var ft=Me.default=void 0,es=Zt(Je()),ts=e;ft=Me.default=(0,es.default)((0,ts.jsx)("path",{d:"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 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-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"CheckCircleOutline");var qe={},ss=Ze;Object.defineProperty(qe,"__esModule",{value:!0});var mt=qe.default=void 0,ns=ss(Je()),as=e;mt=qe.default=(0,ns.default)((0,as.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12m8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8"}),"Block");const is=(t,s,n="")=>{if(!n||!s)return"";switch(n){case L.NOTIFICATION_SEND_FAILED_REASON.USER_DISABLED:return t("notification.sendStatus.reason.disabled",{channel:s});case L.NOTIFICATION_SEND_FAILED_REASON.CHANNEL_UNAVAILABLE:return t("notification.sendStatus.reason.unavailable",{channel:s});case L.NOTIFICATION_SEND_FAILED_REASON.CHANNEL_DISABLED:return t("notification.sendStatus.reason.notSent",{channel:s});case L.NOTIFICATION_SEND_FAILED_REASON.NOT_ONLINE:return t("notification.sendStatus.reason.offline");default:return n}};function ht(t,s,n={}){const{status:o,updatedAt:r,reason:l="",channel:b="wallet"}=n,u=r?t("notification.sendStatus.sentTime",{date:Nt(r,s)}):"",D=is(t,b,l);return o===L.NOTIFICATION_SEND_STATUS.FAILED?{status:"failed",title:t("notification.sendStatus.failed"),sentTime:u,reason:D}:o===L.NOTIFICATION_SEND_STATUS.SENT?{status:"success",title:t("notification.sendStatus.success"),sentTime:u}:{status:"pending",title:t("notification.sendStatus.pending"),reason:D,sentTime:u}}const Pe={pending:"#aaaaaa",success:"#34BE74",failed:"#D0021B"},Fe=["wallet","pushKit","email"],Xe=["info","success","error","warning"],gt=t=>{var n,o;const{settings:s}=t;return(o=(n=s==null?void 0:s.notification)==null?void 0:n.email)==null?void 0:o.enabled},xt=t=>{var n,o;const{settings:s}=t;return(o=(n=s==null?void 0:s.notification)==null?void 0:n.pushKit)==null?void 0:o.enabled},os=(t,s)=>{const n=ne(s,"extra.notifications.email",!0);return{available:gt(t),enabled:n}},rs=(t,s)=>{const n=ne(s,"extra.notifications.push",!0);return{available:xt(t),enabled:n}},ls=t=>({enabled:ne(t,"extra.notifications.wallet",!0)}),cs=t=>({enabled:ne(t,"extra.webhooks",[]).length>0}),ye=(t=3)=>new Promise(s=>{setTimeout(()=>{s()},t*1e3)}),ds=(t,s)=>s==="wallet"||s==="webhook"?[{channel:s,type:"enabled",pass:t("notification.sendStatus.reason.enabled",{channel:s}),fail:t("notification.sendStatus.reason.disabled",{channel:s})}]:s==="pushKit"||s==="email"?[{channel:s,type:"available",pass:t("notification.sendStatus.reason.available",{channel:s}),fail:t("notification.sendStatus.reason.unavailable",{channel:s})},{channel:s,type:"enabled",pass:t("notification.sendStatus.reason.enabled",{channel:s}),fail:t("notification.sendStatus.reason.disabled",{channel:s})}]:[],ve=(t=[])=>{const s=U().startOf("day");return t.filter(n=>U(n.sendAt).isSame(s,"day")).length},us=(t,s="")=>{if(s&&Fe.includes(s)){const l=`${s}SendRecord`,b=ne(t,l,[]);return ve(b)}const n=ne(t,"webhook",{}),o=Object.keys(n??{})??[];if(s&&o.includes(s)){const l=n[s]??[];return ve(l)}const r={};return Fe.forEach(l=>{const b=`${l}SendRecord`,u=ne(t,b,[]),D=ve(u);r[l]=D}),o.length>0&&o.forEach(l=>{const b=n[l]??[],u=ve(b);r[l]=u}),r},Ce=(t,s,n)=>{if(!Array.isArray(t))throw new Error("Invalid filterList or index");return t[n].splice(s,1),t},Ne=(t,s)=>{if(!Array.isArray(s))throw new Error("filters must be an array");return s.length?!s.includes(t):!1},ps=t=>{switch(t){case L.NOTIFICATION_SEND_CHANNEL.WALLET:return"Wallet";case L.NOTIFICATION_SEND_CHANNEL.PUSH:return"Push Kit";case L.NOTIFICATION_SEND_CHANNEL.EMAIL:return"Email";case L.NOTIFICATION_SEND_CHANNEL.WEBHOOK:return"Webhook";default:return""}},bt=()=>({components:{MUIDataTableFilter:{styleOverrides:{header:{marginBottom:0,p:{margin:0}},root:{"& .MuiGrid-container":{marginTop:0,"& .MuiGrid-item":{paddingTop:0}}}}},MuiPopover:{styleOverrides:{root:{"&.MuiPopover-root":{"& .MuiPaper-root:has(.filter-container)":{width:"420px"}}}}}}});function ee({config:t,enableTooltip:s=!0,showTitle:n=!1,children:o}){const{status:r,title:l="",sentTime:b="",reason:u=""}=t,D=[l,u].filter(Boolean).join(", ");return e.jsx(wt,{title:s?e.jsxs(e.Fragment,{children:[e.jsx(G,{color:"inherit",sx:{fontSize:12},children:D}),e.jsx("span",{children:b})]}):null,arrow:!0,placement:"top",children:e.jsxs(v,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:"4px"},children:[e.jsxs(v,{position:"relative",minHeight:14,minWidth:14,display:"flex",alignItems:"center",justifyContent:"center",children:[e.jsx(v,{position:"absolute",width:"100%",height:"100%",borderRadius:"50%",bgcolor:Pe[r],style:{opacity:.15}}),e.jsx(v,{position:"absolute",width:"55%",height:"55%",borderRadius:"50%",bgcolor:Pe[r]})]}),e.jsx(G,{color:"inherit",sx:{fontSize:12},children:n?l:o})]})})}ee.propTypes={config:d.object.isRequired,enableTooltip:d.bool,showTitle:d.bool,children:d.node};ee.defaultProps={enableTooltip:!0,showTitle:!1,children:null};me.propTypes={list:d.array.isRequired,label:d.string.isRequired,onDelete:d.func};me.defaultProps={onDelete:()=>{}};function me({list:t,label:s,onDelete:n}){const{t:o,locale:r}=J();return e.jsxs(v,{display:"flex",gap:1,alignItems:"center",children:[e.jsxs(G,{children:[s,": "]}),t.map(l=>{const b=ht(o,r,{status:l});return e.jsx(_e,{size:"small",label:e.jsx(v,{display:"flex",alignItems:"center",sx:{gap:"4px"},children:e.jsx(ee,{config:b,enableTooltip:!1,children:b.title})}),onDelete:u=>n(u,l)},l)})]})}Ke.propTypes={filterList:d.array.isRequired,onChange:d.func.isRequired,index:d.number.isRequired,column:d.object.isRequired,filterValues:d.array.isRequired,label:d.string.isRequired,renderLabel:d.func.isRequired};function Ke({filterList:t,onChange:s,index:n,column:o,filterValues:r,label:l,renderLabel:b}){return e.jsxs(Be,{className:"filter-container",children:[e.jsx(et,{component:"legend",children:l}),e.jsx(Ee,{row:!0,children:r.map(u=>e.jsx(De,{control:e.jsx(Ae,{checked:t[n].indexOf(u.value??u)>-1,onChange:D=>{const f=[...t];D.target.checked?f[n]=[...f[n],u.value??u]:f[n]=f[n].filter(C=>C!==(u.value??u)),s(f[n],n,o)},name:u.value??u}),label:e.jsx("span",{style:{display:"flex",alignItems:"center"},children:b(u)})},u.value??u))})]})}function Ie(t){return e.jsx(Ke,{...t,renderLabel:s=>e.jsx(ee,{enableTooltip:!1,config:{status:s.status},children:s.label})})}pe.propTypes={status:d.number.isRequired,updatedAt:d.string.isRequired,reason:d.string,channel:d.string,onResend:d.func};function pe({status:t,updatedAt:s,reason:n="",channel:o="wallet",onResend:r}){const{t:l,locale:b}=J(),u=ht(l,b,{status:t,updatedAt:s,reason:n,channel:o});return e.jsxs(v,{display:"flex",alignItems:"center",gap:1,children:[e.jsx(ee,{config:u,showTitle:!0}),u.status!=="success"&&e.jsx(we,{className:"resend-btn",size:"small",startIcon:e.jsx(ze,{}),sx:{fontSize:12,color:"rgba(0, 0, 0, 0.87)",fontWeight:400,".MuiButton-startIcon":{mr:"2px"}},onClick:r,children:l("notification.resend")})]})}Ue.propTypes={value:d.array.isRequired,onChange:d.func};function Ue({value:t,onChange:s}){const{locale:n}=J(),o=U().toDate(),[r,l]=x.useState(null),b=x.useCallback(f=>{l(r?null:f.currentTarget)},[r]),u=!!r,D=x.useCallback(f=>{if(!f.startDate||!f.endDate){V.error("Please select a date range");return}if(U(f.startDate).isAfter(f.endDate)||!U(f.startDate).isValid()||!U(f.endDate).isValid()){V.error("Invalid date range");return}s([f.startDate,f.endDate]),l(null)},[s]);return e.jsxs("div",{children:[e.jsx(G,{component:"div",variant:"h5",color:"textPrimary",style:{fontSize:18,fontWeight:"bold"},mb:0,children:e.jsxs(we,{onClick:b,variant:"outlined",size:"small",color:"inherit",children:[Ge(t[0],n)," - ",Ge(t[1],n)]})}),e.jsx(Oe,{open:u,anchorEl:r,onClose:()=>{l(null)},anchorOrigin:{vertical:"bottom",horizontal:"left"},children:e.jsx(Vt,{open:!0,maxDate:o,initialDateRange:{startDate:t[0],endDate:t[1]},toggle:b,definedRanges:Gt(o),onChange:D})})]})}$e.propTypes={itemComponent:d.elementType.isRequired};function $e({itemComponent:t,...s}){var r;const{t:n}=J();return!((r=s==null?void 0:s.filterList)!=null&&r.filter(l=>l.length).length)?null:e.jsxs(v,{display:"flex",gap:1,alignItems:"center",children:[e.jsx("div",{className:"toolbar-filter-title",children:n("notification.filter")}),e.jsx("div",{className:"toolbar-filter-content",children:e.jsx(Mt.TableFilterList,{...s,ItemComponent:t})})]})}function Te({label:t,onDelete:s,canDelete:n=()=>!0,...o}){const r=s&&typeof s=="function"?s:void 0;let l=!0;return n&&typeof n=="function"&&(l=n({label:t,...o})),e.jsx(_e,{label:t,variant:"outlined",...r&&l?{onDelete:r}:{}})}Te.propTypes={label:d.string.isRequired,onDelete:d.func,canDelete:d.func};Te.defaultProps={canDelete:()=>!0};const fs=[{label:"Wallet",value:"app",checked:!0},{label:"Email",value:"email",checked:!0},{label:"Push Kit",value:"push",checked:!0},{label:"Webhook",value:"webhook",checked:!0}];He.propTypes={loading:d.bool,onCancel:d.func,onConfirm:d.func};He.defaultProps={loading:!1,onCancel:()=>{},onConfirm:()=>{}};function He({loading:t=!1,onCancel:s,onConfirm:n}){const{t:o}=J(),[r,l]=x.useState(fs),[b,u]=x.useState(!0),D=(C,N)=>{N.checked=C.target.checked;const B=r.map(z=>({...z,checked:z.value===N.value?N.checked:z.checked}));l(B)},f=C=>{C.stopPropagation(),n({channels:r.filter(N=>N.checked).map(N=>N.value),isResendFailedOnly:b})};return e.jsxs(v,{className:"resend-config",sx:{padding:"16px 24px"},children:[e.jsx(G,{variant:"body1",component:"div",className:"check-title",sx:{fontWeight:700,mb:1},children:o("notification.config")}),e.jsx(v,{className:"choose-channel",children:e.jsxs(Be,{component:"fieldset",variant:"standard",children:[e.jsx(et,{component:"legend",children:o("notification.selectChannels")}),e.jsx(Ee,{sx:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:1},children:r.map(C=>e.jsx(De,{control:e.jsx(Ae,{checked:C.checked,onChange:N=>D(N,C),name:C.value}),label:C.label},C.value))})]})}),e.jsx(v,{className:"resend-config-footer",children:e.jsx(Ee,{children:e.jsx(De,{control:e.jsx(Ae,{checked:b,onChange:C=>u(C.target.checked)}),label:o("notification.resendFailedOnly")})})}),e.jsxs(v,{display:"flex",justifyContent:"flex-end",gap:1,className:"resend-config-footer-tip",children:[e.jsx(we,{onClick:C=>{C.stopPropagation(),s()},color:"inherit",children:o("common.cancel")}),e.jsxs(we,{onClick:f,color:"primary",disabled:t,variant:"contained",autoFocus:!0,style:{marginLeft:8},children:[t&&e.jsx(tt,{size:16}),o("common.confirm")]})]})]})}jt.propTypes={notificationId:d.string.isRequired,handleResend:d.func,resending:d.bool};function jt({notificationId:t,handleResend:s,resending:n=!1}){const{t:o,locale:r}=J(),l=st(),b=x.useMemo(()=>nt(l,bt()),[l]),{getReceivers:u,inService:D,teamDid:f,getUser:C,blocklet:N}=We(),[B,z]=x.useState(!1),[E,Y]=x.useState([]),P=Le({anchorEl:null,position:null}),k=Le({anchorEl:null,position:null}),[I,$]=x.useState(null),[Q,te]=x.useState({total:0,pageSize:10,pageCount:0,page:1}),[p,S]=x.useState({searchText:"",page:1,pageSize:10,walletSendStatus:[],pushKitSendStatus:[],emailSendStatus:[],dateRange:[U().subtract(1,"month").startOf("day").toDate(),U().endOf("day").toDate()]}),[A,w]=x.useState([]),O=[{label:o("notification.sendStatus.pending"),value:0,status:"pending"},{label:o("notification.sendStatus.success"),value:1,status:"success"},{label:o("notification.sendStatus.failed"),value:2,status:"failed"}],_=async()=>{if(!B&&t)try{z(!0);const a=await u({notificationId:t,...p}),i=a.list.map(c=>({...c,receiverUser:{...c.receiverUser,avatar:rt(c.receiverUser.avatar,f,D)}}));Y(i),te(a.paging),z(!1)}catch(a){V.error(a.message),z(!1)}};x.useEffect(()=>{_()},[p]);const Z=a=>{a.stopPropagation();const i=a.currentTarget;k.anchorEl=i;const c=i.getBoundingClientRect();k.position={top:c.top+window.scrollY,left:c.left+window.scrollX}},W=a=>a.data.length?e.jsx("div",{style:{display:"flex",alignItems:"center",padding:"10px"},children:e.jsx(ke,{className:"resend-btn",size:"small",color:"primary",variant:"contained",startIcon:e.jsx(ze,{}),sx:{".MuiButton-startIcon":{mr:"2px"}},onClick:Z,children:o("notification.resend")})}):null,ae={sort:!1,download:!1,print:!1,selectableRows:"multiple",searchPlaceholder:o("common.search"),searchAlwaysOpen:!1,filterType:"checkbox",searchDebounceTime:300,page:Q.page-1,rowsPerPage:Q.pageSize,count:Q.total,searchText:p.searchText,tableBodyMaxHeight:"calc(80vh - 260px)",rowsSelected:A,onRowSelectionChange:(a,i)=>{w(i.map(c=>c.dataIndex))},customToolbarSelect:W},se=({page:a,rowsPerPage:i,searchText:c,filterList:y})=>{const[,F=[],K=[],q=[]]=y;p.pageSize!==i?S(M=>({...M,pageSize:i,page:1})):p.page!==a+1?S(M=>({...M,page:a+1})):p.searchText!==c?S(M=>({...M,searchText:c,page:1})):fe(F,p.walletSendStatus)?fe(K,p.pushKitSendStatus)?fe(q,p.emailSendStatus)||S(M=>({...M,emailSendStatus:q,page:1})):S(M=>({...M,pushKitSendStatus:K,page:1})):S(M=>({...M,walletSendStatus:F,page:1}))},le=x.useCallback(async(a,i)=>{if(!i)return!1;const c=await C(i);return c?a==="wallet"?ls(c):a==="email"?os(N,c):a==="pushKit"?rs(N,c):a==="webhook"?cs(c):!0:!1},[C,N]),je=x.useCallback(a=>ds(o,a),[o]),ce=()=>{P.anchorEl=null,P.position=null,$(null)},de=()=>{k.anchorEl=null,k.position=null},ue=async(a,i,c=!0,y="")=>{if(!(!i.length||!a.length))try{s(a,i,c,y),k.anchorEl||(await ye(.5),ce())}catch(F){console.error("handleResend error",{error:F})}},h=async({channels:a,isResendFailedOnly:i})=>{const c=A.map(y=>E[y].receiver);await ue(a,c,i),await ye(.5),de(),w([])},m=async(a,i=[],c=!0)=>{try{await ue(["webhook"],[a.receiver],c,i)}catch(y){V.error(y.response?y.response.statusText:y.message)}},g=async(a,i,c,y=[],F=!0)=>{if(a.stopPropagation(),us(i,c)>=4){V.warning(o("notification.resendLimit"));return}if(!Fe.includes(c)){await m(i,y,F);return}if(a){const q=a.currentTarget,M=q.getBoundingClientRect();P.anchorEl=q,P.position={top:M.top+window.scrollY,left:M.left+window.scrollX}}$({channel:c});try{const q=await le(c,i.receiver);await ye(1),$({channel:c,result:q}),(typeof q=="boolean"&&q||Rt(q)&&Object.values(q).every(M=>!!M))&&(await s([c],[i.receiver],F),k.anchorEl||(await ye(.5),ce()))}catch(q){V.error(q.message)}},j=a=>{S(i=>({...i,dateRange:a,page:1}))},T=(a,i,c,y)=>{a.stopPropagation();const F=c.filter(K=>K!==i);S(K=>({...K,[y]:F,page:1}))},R=X(()=>[{label:o("notification.receiver"),name:"receiver",width:200,options:{filter:!1,customBodyRenderLite:a=>{const{receiverUser:i,receiver:c}=E[a];return i?e.jsxs(v,{"data-cy":`member-name-${i.fullName}`,display:"flex",alignItems:"center",gap:1,justifyContent:"flex-start",children:[e.jsx(at,{src:`${i.avatar}?imageFilter=resize&w=48&h=48`,size:32,did:c,shape:"circle",style:{borderRadius:"100%",overflow:"hidden"}}),e.jsx(xe,{children:i.fullName})]},c):e.jsx(Tt,{size:14,responsive:!1,compact:!0,copyable:!1,did:c})}}},{label:"Wallet",name:"walletSendStatus",width:200,options:{setCellProps:()=>({className:"sent-status-cell"}),filter:!0,filterType:"custom",filterList:p.walletSendStatus??[],customFilterListOptions:{render:a=>e.jsx(me,{list:a,label:"Wallet",onDelete:(i,c)=>{i.stopPropagation(),T(i,c,R[1].options.filterList,"walletSendStatus")}}),update:Ce},filterOptions:{names:O,fullWidth:!0,logic:Ne,display:(a,i,c,y)=>e.jsx(Ie,{label:"Wallet",filterList:a,onChange:i,index:c,column:y,filterValues:O})},customBodyRenderLite:a=>{const{walletSendStatus:i,walletSendAt:c,walletSendFailedReason:y}=E[a];return e.jsx(pe,{status:i,updatedAt:c,reason:y,channel:"wallet",onResend:F=>g(F,E[a],"wallet",[],!1)})}}},{label:"Push Kit",name:"pushKitSendStatus",width:200,options:{setCellProps:()=>({className:"sent-status-cell"}),customBodyRenderLite:a=>{const{pushKitSendStatus:i,pushKitSendAt:c,pushKitSendFailedReason:y}=E[a];return e.jsx(pe,{status:i,updatedAt:c,reason:y,channel:"pushkit",onResend:F=>g(F,E[a],"pushKit",[],!1)})},filter:!0,filterType:"custom",filterList:p.pushKitSendStatus??[],customFilterListOptions:{render:a=>e.jsx(me,{list:a,label:"Push Kit",onDelete:(i,c)=>{i.stopPropagation(),T(i,c,R[2].options.filterList,"pushKitSendStatus")}}),update:Ce},filterOptions:{names:O,fullWidth:!0,logic:Ne,display:(a,i,c,y)=>e.jsx(Ie,{label:"Push Kit",filterList:a,onChange:i,index:c,column:y,filterValues:O})}}},{label:"Email",name:"emailSendStatus",width:200,options:{setCellProps:()=>({className:"sent-status-cell"}),customBodyRenderLite:a=>{const{emailSendStatus:i,emailSendAt:c,emailSendFailedReason:y}=E[a];return e.jsx(pe,{status:i,updatedAt:c,reason:y,channel:"email",onResend:F=>g(F,E[a],"email",[],!1)})},filter:!0,filterType:"custom",filterList:p.emailSendStatus??[],customFilterListOptions:{render:a=>e.jsx(me,{list:a,label:"Email",onDelete:(i,c)=>{i.stopPropagation(),T(i,c,R[3].options.filterList,"emailSendStatus")}}),update:Ce},filterOptions:{names:O,fullWidth:!0,logic:Ne,display:(a,i,c,y)=>e.jsx(Ie,{label:"Email",filterList:a,onChange:i,index:c,column:y,filterValues:O})}}},{label:"Webhook",name:"webhook",width:200,options:{filter:!1,setCellProps:()=>({className:"sent-status-cell"}),customBodyRenderLite:a=>{const{webhook:i}=E[a];if(!i)return null;const c=Object.entries(i)[0];if(!c)return null;const[y,F]=c,K=F[0];return e.jsx(v,{display:"flex",flexDirection:"column",gap:1,children:e.jsxs(v,{className:"webhook-item",fontSize:12,children:[e.jsx(xe,{maxLength:30,children:y},y),e.jsx(pe,{status:K.status,updatedAt:K.sendAt,reason:K.failedReason,channel:"webhook",onResend:q=>g(q,E[a],"webhook",[y],!1)})]},y)})}}},{label:o("common.createdAt"),name:"createdAt",width:100,options:{filter:!1,customBodyRenderLite:a=>{const{createdAt:i}=E[a];return e.jsx(it,{value:i,locale:r,shouldUpdate:!0})}}}],[E,r,p,o]),H=[e.jsx(Ue,{value:p.dateRange,onChange:j},"date-picker"),e.jsx(ke,{variant:"contained",size:"small",color:"primary",loading:B,startIcon:e.jsx(Ht,{}),onClick:()=>_(),sx:{".MuiButton-startIcon":{mr:"2px"}},style:{marginLeft:8},children:o("common.refresh")},"refresh")];return e.jsx(v,{sx:{overflow:"auto",".MuiTableCell-head":{whiteSpace:"nowrap",fontWeight:"bold"},".MuiTableCell-root":{paddingRight:"8px",whiteSpace:"nowrap"}},children:e.jsx(hs,{children:e.jsxs(ot,{theme:b,children:[e.jsx(dt,{className:"receivers-table",locale:r,loading:B,columns:R,data:E,onChange:se,options:ae,customButtons:H,components:{TableFilterList:a=>e.jsx($e,{...a,itemComponent:i=>e.jsx(Te,{...i,canDelete:()=>!1})})}}),P.anchorEl&&e.jsx(Oe,{open:!!P.anchorEl,anchorReference:"anchorPosition",anchorPosition:P.position,onClose:ce,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},children:e.jsxs(gs,{children:[e.jsxs(G,{variant:"body1",component:"div",className:"check-title",children:[I==null?void 0:I.channel," Checking"]}),e.jsx(v,{display:"flex",flexDirection:"column",sx:{gap:"4px"},children:je(I==null?void 0:I.channel).map(a=>{var F,K;const{type:i,pass:c,fail:y}=a;return!(I!=null&&I.result)||(F=I==null?void 0:I.result)!=null&&F[i]?e.jsxs(G,{variant:"body1",component:"div",className:"check-item",display:"flex",alignItems:"center",sx:{gap:"4px",color:(K=I==null?void 0:I.result)!=null&&K[i]?Se.success.main:"inherit"},children:[I!=null&&I.result?e.jsx(ft,{}):e.jsx(tt,{size:12,sx:{color:Se.primary.main}}),e.jsx("span",{children:c})]},i):e.jsxs(G,{variant:"body1",component:"div",display:"flex",alignItems:"center",className:"check-item",sx:{gap:"4px",color:Se.error.main},children:[e.jsx(mt,{}),e.jsx("span",{children:y})]},i)})})]})}),k.anchorEl&&e.jsx(Oe,{open:!!k.anchorEl,anchorReference:"anchorPosition",anchorPosition:k.position,onClose:de,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},children:e.jsx(He,{loading:n,onCancel:de,onConfirm:h})})]})})})}const ms=x.memo(jt),hs=re.div`
|
|
1
|
+
import{br as St,r as x,bD as X,bj as U,A as V,F as L,j as e,P as d,T as Ct,aQ as Je,aR as Ze,ax as Nt,h as ne,aC as wt,k as G,N as v,m as J,ej as _e,Q as Be,kJ as et,bo as Ee,aZ as De,X as Ae,ep as we,b8 as Ge,b6 as Oe,C as tt,n as re,f as st,dB as nt,aU as Le,W as Tt,aw as at,kK as it,B as ke,kL as ot,g3 as Se,gk as rt,aj as fe,ff as Rt,ay as It,G as Ye,kM as Et,kN as Dt,D as lt,kO as At,kP as Ot,kQ as Lt,kR as kt,R as Pt,bx as ct,S as Ft,U as _t,V as Qe,M as Bt,kS as zt,a5 as Wt}from"./index-B8IA5mbU.js";import{l as Mt,D as dt,g as qt}from"./index-zsz18EZU.js";import{a as ze,c as Kt}from"./actions-DNqu-9QQ.js";import{B as Ut}from"./index-DUIS5TWY.js";import{S as xe}from"./shorten-label-DEXH98Sk.js";import{I as ut}from"./index-rZ1SBrH_.js";import{T as $t}from"./index-Cy666DOY.js";import{d as Ht}from"./Refresh-BK_aBn8t.js";import{D as Vt,g as Gt}from"./traffic-CTPgH40k.js";import{u as Yt}from"./use-mobile-DxY5BxAJ.js";import"./TableRow-Cyof88VP.js";import"./useThemeProps-C3mE_-3Z.js";import"./emotion-react.browser.esm-CSjORkdU.js";import"./ViewColumn-BSxTQVZ-.js";import"./Search-DGRuo7t-.js";import"./Clear-CmPKgcDo.js";import"./Delete-CiU1bEBu.js";import"./index-DbTX57bM.js";import"./MoreVert-BZT8paNd.js";import"./TableSearch-CxutcmoF.js";import"./useLocalStorage-CRy7LFYG.js";import"./get-safe-url-COP_ZxQz.js";import"./ButtonGroup-BzAT8pGA.js";import"./getValidReactChildren-CxwCdnNW.js";import"./url-evaluation-DmRIkzYe.js";import"./permission-JEjDz9i9.js";import"./index.esm-F8b32K2k.js";import"./collapse-BhbkfN99.js";import"./blocklet-BzkaFDNW.js";import"./Switch-CG3jQlg3.js";import"./iframe-D-LcA3MK.js";import"./ChevronLeft-CDs40tmH.js";import"./ChevronRight-CFfmouwT.js";import"./index-B0UMNJnN.js";import"./base-chart-C63mtC4Z.js";import"./index-Cb3Huyfb.js";import"./AdapterDayjs-Cf6af3xk.js";import"./CSSTransition-Byi2ne4y.js";import"./refType-Dqlqmha-.js";const pt=x.createContext({}),{Provider:Qt,Consumer:pn}=pt;function Xt({children:t,blocklet:s=""}){const{api:n,inService:o,ws:{useSubscription:r}}=St(),[l,b]=x.useState([]),[u,D]=x.useState({total:0,pageSize:20,pageCount:0,page:1}),f=X(()=>{var p;return(p=s.meta)==null?void 0:p.did},[s]),[C,N]=x.useState([]),[B,z]=x.useState({}),E=X(()=>l.length?new Set(l.map(p=>p.id)):new Set,[l]),Y=async({page:p=1,pageSize:S=20,...A}={})=>{if(!f)return[];try{const w={paging:{page:p,pageSize:S},...A,teamDid:f,dateRange:A.dateRange?[U(A.dateRange[0]).toISOString(),U(A.dateRange[1]).toISOString()]:void 0},{dids:O,..._}=w;let Z="";O&&O.includes("system")&&(Z="system");const W=O?O.filter(le=>le!=="system"):[],ae={..._,source:Z,componentDids:W},se=await n.getNotificationSendLog({input:ae});return z(ae),b(se.list),D(se.paging),se.list}catch(w){return V.error(w.message),[]}},P=async()=>{const p=await n.getNotificationComponents({input:{teamDid:f}});N(p.componentDids)},k=x.useCallback(p=>{const S=s.children.find(A=>{var w;return((w=A.meta)==null?void 0:w.did)===p});if(S)return S.ancestors=[s],S},[s]),I=async({notificationId:p,receivers:S,channels:A,...w})=>{await n.resendNotification({input:{teamDid:f,notificationId:p,receivers:S,channels:A.map(O=>O==="wallet"?L.NOTIFICATION_SEND_CHANNEL.WALLET:O==="pushKit"?L.NOTIFICATION_SEND_CHANNEL.PUSH:O),...w}})},$=x.useCallback(async p=>(await n.getUser({input:{teamDid:f,user:{did:p}}})).user,[n,f]),Q=x.useCallback(async({page:p=1,pageSize:S=20,...A}={})=>{try{const w={paging:{page:p,pageSize:S},...A,userName:A.searchText||"",teamDid:f,dateRange:A.dateRange?[U(A.dateRange[0]).toISOString(),U(A.dateRange[1]).toISOString()]:void 0};return await n.getReceivers({input:w})}catch(w){throw V.error(w.message),w}},[n,f]);x.useEffect(()=>{f&&P()},[f]),r(L.EVENTS.NOTIFICATION_BLOCKLET_UPDATE,p=>{E.has(p.notificationId)&&Y(B)},[E,B]),r(L.EVENTS.NOTIFICATION_BLOCKLET_CREATE,p=>{E.has(p.id)||Y(B)},[E,B]);const te={fetch:Y,data:l,paging:u,blocklet:s,getComponent:k,resendNotification:I,getUser:$,componentDids:C,getReceivers:Q,inService:o,teamDid:f};return e.jsx(Qt,{value:{notificationRecords:te},children:t})}function We(){const{notificationRecords:t}=x.useContext(pt);return t}be.propTypes={severity:d.oneOf(Object.values(["info","success","error","warning"])).isRequired};const Jt={info:"primary",success:"success",error:"error",warning:"warning"};function be({severity:t="info"}){return e.jsx(Ct,{type:Jt[t],children:t})}var Me={},Zt=Ze;Object.defineProperty(Me,"__esModule",{value:!0});var ft=Me.default=void 0,es=Zt(Je()),ts=e;ft=Me.default=(0,es.default)((0,ts.jsx)("path",{d:"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 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-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"CheckCircleOutline");var qe={},ss=Ze;Object.defineProperty(qe,"__esModule",{value:!0});var mt=qe.default=void 0,ns=ss(Je()),as=e;mt=qe.default=(0,ns.default)((0,as.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12m8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8"}),"Block");const is=(t,s,n="")=>{if(!n||!s)return"";switch(n){case L.NOTIFICATION_SEND_FAILED_REASON.USER_DISABLED:return t("notification.sendStatus.reason.disabled",{channel:s});case L.NOTIFICATION_SEND_FAILED_REASON.CHANNEL_UNAVAILABLE:return t("notification.sendStatus.reason.unavailable",{channel:s});case L.NOTIFICATION_SEND_FAILED_REASON.CHANNEL_DISABLED:return t("notification.sendStatus.reason.notSent",{channel:s});case L.NOTIFICATION_SEND_FAILED_REASON.NOT_ONLINE:return t("notification.sendStatus.reason.offline");default:return n}};function ht(t,s,n={}){const{status:o,updatedAt:r,reason:l="",channel:b="wallet"}=n,u=r?t("notification.sendStatus.sentTime",{date:Nt(r,s)}):"",D=is(t,b,l);return o===L.NOTIFICATION_SEND_STATUS.FAILED?{status:"failed",title:t("notification.sendStatus.failed"),sentTime:u,reason:D}:o===L.NOTIFICATION_SEND_STATUS.SENT?{status:"success",title:t("notification.sendStatus.success"),sentTime:u}:{status:"pending",title:t("notification.sendStatus.pending"),reason:D,sentTime:u}}const Pe={pending:"#aaaaaa",success:"#34BE74",failed:"#D0021B"},Fe=["wallet","pushKit","email"],Xe=["info","success","error","warning"],gt=t=>{var n,o;const{settings:s}=t;return(o=(n=s==null?void 0:s.notification)==null?void 0:n.email)==null?void 0:o.enabled},xt=t=>{var n,o;const{settings:s}=t;return(o=(n=s==null?void 0:s.notification)==null?void 0:n.pushKit)==null?void 0:o.enabled},os=(t,s)=>{const n=ne(s,"extra.notifications.email",!0);return{available:gt(t),enabled:n}},rs=(t,s)=>{const n=ne(s,"extra.notifications.push",!0);return{available:xt(t),enabled:n}},ls=t=>({enabled:ne(t,"extra.notifications.wallet",!0)}),cs=t=>({enabled:ne(t,"extra.webhooks",[]).length>0}),ye=(t=3)=>new Promise(s=>{setTimeout(()=>{s()},t*1e3)}),ds=(t,s)=>s==="wallet"||s==="webhook"?[{channel:s,type:"enabled",pass:t("notification.sendStatus.reason.enabled",{channel:s}),fail:t("notification.sendStatus.reason.disabled",{channel:s})}]:s==="pushKit"||s==="email"?[{channel:s,type:"available",pass:t("notification.sendStatus.reason.available",{channel:s}),fail:t("notification.sendStatus.reason.unavailable",{channel:s})},{channel:s,type:"enabled",pass:t("notification.sendStatus.reason.enabled",{channel:s}),fail:t("notification.sendStatus.reason.disabled",{channel:s})}]:[],ve=(t=[])=>{const s=U().startOf("day");return t.filter(n=>U(n.sendAt).isSame(s,"day")).length},us=(t,s="")=>{if(s&&Fe.includes(s)){const l=`${s}SendRecord`,b=ne(t,l,[]);return ve(b)}const n=ne(t,"webhook",{}),o=Object.keys(n??{})??[];if(s&&o.includes(s)){const l=n[s]??[];return ve(l)}const r={};return Fe.forEach(l=>{const b=`${l}SendRecord`,u=ne(t,b,[]),D=ve(u);r[l]=D}),o.length>0&&o.forEach(l=>{const b=n[l]??[],u=ve(b);r[l]=u}),r},Ce=(t,s,n)=>{if(!Array.isArray(t))throw new Error("Invalid filterList or index");return t[n].splice(s,1),t},Ne=(t,s)=>{if(!Array.isArray(s))throw new Error("filters must be an array");return s.length?!s.includes(t):!1},ps=t=>{switch(t){case L.NOTIFICATION_SEND_CHANNEL.WALLET:return"Wallet";case L.NOTIFICATION_SEND_CHANNEL.PUSH:return"Push Kit";case L.NOTIFICATION_SEND_CHANNEL.EMAIL:return"Email";case L.NOTIFICATION_SEND_CHANNEL.WEBHOOK:return"Webhook";default:return""}},bt=()=>({components:{MUIDataTableFilter:{styleOverrides:{header:{marginBottom:0,p:{margin:0}},root:{"& .MuiGrid-container":{marginTop:0,"& .MuiGrid-item":{paddingTop:0}}}}},MuiPopover:{styleOverrides:{root:{"&.MuiPopover-root":{"& .MuiPaper-root:has(.filter-container)":{width:"420px"}}}}}}});function ee({config:t,enableTooltip:s=!0,showTitle:n=!1,children:o}){const{status:r,title:l="",sentTime:b="",reason:u=""}=t,D=[l,u].filter(Boolean).join(", ");return e.jsx(wt,{title:s?e.jsxs(e.Fragment,{children:[e.jsx(G,{color:"inherit",sx:{fontSize:12},children:D}),e.jsx("span",{children:b})]}):null,arrow:!0,placement:"top",children:e.jsxs(v,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:"4px"},children:[e.jsxs(v,{position:"relative",minHeight:14,minWidth:14,display:"flex",alignItems:"center",justifyContent:"center",children:[e.jsx(v,{position:"absolute",width:"100%",height:"100%",borderRadius:"50%",bgcolor:Pe[r],style:{opacity:.15}}),e.jsx(v,{position:"absolute",width:"55%",height:"55%",borderRadius:"50%",bgcolor:Pe[r]})]}),e.jsx(G,{color:"inherit",sx:{fontSize:12},children:n?l:o})]})})}ee.propTypes={config:d.object.isRequired,enableTooltip:d.bool,showTitle:d.bool,children:d.node};ee.defaultProps={enableTooltip:!0,showTitle:!1,children:null};me.propTypes={list:d.array.isRequired,label:d.string.isRequired,onDelete:d.func};me.defaultProps={onDelete:()=>{}};function me({list:t,label:s,onDelete:n}){const{t:o,locale:r}=J();return e.jsxs(v,{display:"flex",gap:1,alignItems:"center",children:[e.jsxs(G,{children:[s,": "]}),t.map(l=>{const b=ht(o,r,{status:l});return e.jsx(_e,{size:"small",label:e.jsx(v,{display:"flex",alignItems:"center",sx:{gap:"4px"},children:e.jsx(ee,{config:b,enableTooltip:!1,children:b.title})}),onDelete:u=>n(u,l)},l)})]})}Ke.propTypes={filterList:d.array.isRequired,onChange:d.func.isRequired,index:d.number.isRequired,column:d.object.isRequired,filterValues:d.array.isRequired,label:d.string.isRequired,renderLabel:d.func.isRequired};function Ke({filterList:t,onChange:s,index:n,column:o,filterValues:r,label:l,renderLabel:b}){return e.jsxs(Be,{className:"filter-container",children:[e.jsx(et,{component:"legend",children:l}),e.jsx(Ee,{row:!0,children:r.map(u=>e.jsx(De,{control:e.jsx(Ae,{checked:t[n].indexOf(u.value??u)>-1,onChange:D=>{const f=[...t];D.target.checked?f[n]=[...f[n],u.value??u]:f[n]=f[n].filter(C=>C!==(u.value??u)),s(f[n],n,o)},name:u.value??u}),label:e.jsx("span",{style:{display:"flex",alignItems:"center"},children:b(u)})},u.value??u))})]})}function Ie(t){return e.jsx(Ke,{...t,renderLabel:s=>e.jsx(ee,{enableTooltip:!1,config:{status:s.status},children:s.label})})}pe.propTypes={status:d.number.isRequired,updatedAt:d.string.isRequired,reason:d.string,channel:d.string,onResend:d.func};function pe({status:t,updatedAt:s,reason:n="",channel:o="wallet",onResend:r}){const{t:l,locale:b}=J(),u=ht(l,b,{status:t,updatedAt:s,reason:n,channel:o});return e.jsxs(v,{display:"flex",alignItems:"center",gap:1,children:[e.jsx(ee,{config:u,showTitle:!0}),u.status!=="success"&&e.jsx(we,{className:"resend-btn",size:"small",startIcon:e.jsx(ze,{}),sx:{fontSize:12,color:"rgba(0, 0, 0, 0.87)",fontWeight:400,".MuiButton-startIcon":{mr:"2px"}},onClick:r,children:l("notification.resend")})]})}Ue.propTypes={value:d.array.isRequired,onChange:d.func};function Ue({value:t,onChange:s}){const{locale:n}=J(),o=U().toDate(),[r,l]=x.useState(null),b=x.useCallback(f=>{l(r?null:f.currentTarget)},[r]),u=!!r,D=x.useCallback(f=>{if(!f.startDate||!f.endDate){V.error("Please select a date range");return}if(U(f.startDate).isAfter(f.endDate)||!U(f.startDate).isValid()||!U(f.endDate).isValid()){V.error("Invalid date range");return}s([f.startDate,f.endDate]),l(null)},[s]);return e.jsxs("div",{children:[e.jsx(G,{component:"div",variant:"h5",color:"textPrimary",style:{fontSize:18,fontWeight:"bold"},mb:0,children:e.jsxs(we,{onClick:b,variant:"outlined",size:"small",color:"inherit",children:[Ge(t[0],n)," - ",Ge(t[1],n)]})}),e.jsx(Oe,{open:u,anchorEl:r,onClose:()=>{l(null)},anchorOrigin:{vertical:"bottom",horizontal:"left"},children:e.jsx(Vt,{open:!0,maxDate:o,initialDateRange:{startDate:t[0],endDate:t[1]},toggle:b,definedRanges:Gt(o),onChange:D})})]})}$e.propTypes={itemComponent:d.elementType.isRequired};function $e({itemComponent:t,...s}){var r;const{t:n}=J();return!((r=s==null?void 0:s.filterList)!=null&&r.filter(l=>l.length).length)?null:e.jsxs(v,{display:"flex",gap:1,alignItems:"center",children:[e.jsx("div",{className:"toolbar-filter-title",children:n("notification.filter")}),e.jsx("div",{className:"toolbar-filter-content",children:e.jsx(Mt.TableFilterList,{...s,ItemComponent:t})})]})}function Te({label:t,onDelete:s,canDelete:n=()=>!0,...o}){const r=s&&typeof s=="function"?s:void 0;let l=!0;return n&&typeof n=="function"&&(l=n({label:t,...o})),e.jsx(_e,{label:t,variant:"outlined",...r&&l?{onDelete:r}:{}})}Te.propTypes={label:d.string.isRequired,onDelete:d.func,canDelete:d.func};Te.defaultProps={canDelete:()=>!0};const fs=[{label:"Wallet",value:"app",checked:!0},{label:"Email",value:"email",checked:!0},{label:"Push Kit",value:"push",checked:!0},{label:"Webhook",value:"webhook",checked:!0}];He.propTypes={loading:d.bool,onCancel:d.func,onConfirm:d.func};He.defaultProps={loading:!1,onCancel:()=>{},onConfirm:()=>{}};function He({loading:t=!1,onCancel:s,onConfirm:n}){const{t:o}=J(),[r,l]=x.useState(fs),[b,u]=x.useState(!0),D=(C,N)=>{N.checked=C.target.checked;const B=r.map(z=>({...z,checked:z.value===N.value?N.checked:z.checked}));l(B)},f=C=>{C.stopPropagation(),n({channels:r.filter(N=>N.checked).map(N=>N.value),isResendFailedOnly:b})};return e.jsxs(v,{className:"resend-config",sx:{padding:"16px 24px"},children:[e.jsx(G,{variant:"body1",component:"div",className:"check-title",sx:{fontWeight:700,mb:1},children:o("notification.config")}),e.jsx(v,{className:"choose-channel",children:e.jsxs(Be,{component:"fieldset",variant:"standard",children:[e.jsx(et,{component:"legend",children:o("notification.selectChannels")}),e.jsx(Ee,{sx:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:1},children:r.map(C=>e.jsx(De,{control:e.jsx(Ae,{checked:C.checked,onChange:N=>D(N,C),name:C.value}),label:C.label},C.value))})]})}),e.jsx(v,{className:"resend-config-footer",children:e.jsx(Ee,{children:e.jsx(De,{control:e.jsx(Ae,{checked:b,onChange:C=>u(C.target.checked)}),label:o("notification.resendFailedOnly")})})}),e.jsxs(v,{display:"flex",justifyContent:"flex-end",gap:1,className:"resend-config-footer-tip",children:[e.jsx(we,{onClick:C=>{C.stopPropagation(),s()},color:"inherit",children:o("common.cancel")}),e.jsxs(we,{onClick:f,color:"primary",disabled:t,variant:"contained",autoFocus:!0,style:{marginLeft:8},children:[t&&e.jsx(tt,{size:16}),o("common.confirm")]})]})]})}jt.propTypes={notificationId:d.string.isRequired,handleResend:d.func,resending:d.bool};function jt({notificationId:t,handleResend:s,resending:n=!1}){const{t:o,locale:r}=J(),l=st(),b=x.useMemo(()=>nt(l,bt()),[l]),{getReceivers:u,inService:D,teamDid:f,getUser:C,blocklet:N}=We(),[B,z]=x.useState(!1),[E,Y]=x.useState([]),P=Le({anchorEl:null,position:null}),k=Le({anchorEl:null,position:null}),[I,$]=x.useState(null),[Q,te]=x.useState({total:0,pageSize:10,pageCount:0,page:1}),[p,S]=x.useState({searchText:"",page:1,pageSize:10,walletSendStatus:[],pushKitSendStatus:[],emailSendStatus:[],dateRange:[U().subtract(1,"month").startOf("day").toDate(),U().endOf("day").toDate()]}),[A,w]=x.useState([]),O=[{label:o("notification.sendStatus.pending"),value:0,status:"pending"},{label:o("notification.sendStatus.success"),value:1,status:"success"},{label:o("notification.sendStatus.failed"),value:2,status:"failed"}],_=async()=>{if(!B&&t)try{z(!0);const a=await u({notificationId:t,...p}),i=a.list.map(c=>({...c,receiverUser:{...c.receiverUser,avatar:rt(c.receiverUser.avatar,f,D)}}));Y(i),te(a.paging),z(!1)}catch(a){V.error(a.message),z(!1)}};x.useEffect(()=>{_()},[p]);const Z=a=>{a.stopPropagation();const i=a.currentTarget;k.anchorEl=i;const c=i.getBoundingClientRect();k.position={top:c.top+window.scrollY,left:c.left+window.scrollX}},W=a=>a.data.length?e.jsx("div",{style:{display:"flex",alignItems:"center",padding:"10px"},children:e.jsx(ke,{className:"resend-btn",size:"small",color:"primary",variant:"contained",startIcon:e.jsx(ze,{}),sx:{".MuiButton-startIcon":{mr:"2px"}},onClick:Z,children:o("notification.resend")})}):null,ae={sort:!1,download:!1,print:!1,selectableRows:"multiple",searchPlaceholder:o("common.search"),searchAlwaysOpen:!1,filterType:"checkbox",searchDebounceTime:300,page:Q.page-1,rowsPerPage:Q.pageSize,count:Q.total,searchText:p.searchText,tableBodyMaxHeight:"calc(80vh - 260px)",rowsSelected:A,onRowSelectionChange:(a,i)=>{w(i.map(c=>c.dataIndex))},customToolbarSelect:W},se=({page:a,rowsPerPage:i,searchText:c,filterList:y})=>{const[,F=[],K=[],q=[]]=y;p.pageSize!==i?S(M=>({...M,pageSize:i,page:1})):p.page!==a+1?S(M=>({...M,page:a+1})):p.searchText!==c?S(M=>({...M,searchText:c,page:1})):fe(F,p.walletSendStatus)?fe(K,p.pushKitSendStatus)?fe(q,p.emailSendStatus)||S(M=>({...M,emailSendStatus:q,page:1})):S(M=>({...M,pushKitSendStatus:K,page:1})):S(M=>({...M,walletSendStatus:F,page:1}))},le=x.useCallback(async(a,i)=>{if(!i)return!1;const c=await C(i);return c?a==="wallet"?ls(c):a==="email"?os(N,c):a==="pushKit"?rs(N,c):a==="webhook"?cs(c):!0:!1},[C,N]),je=x.useCallback(a=>ds(o,a),[o]),ce=()=>{P.anchorEl=null,P.position=null,$(null)},de=()=>{k.anchorEl=null,k.position=null},ue=async(a,i,c=!0,y="")=>{if(!(!i.length||!a.length))try{s(a,i,c,y),k.anchorEl||(await ye(.5),ce())}catch(F){console.error("handleResend error",{error:F})}},h=async({channels:a,isResendFailedOnly:i})=>{const c=A.map(y=>E[y].receiver);await ue(a,c,i),await ye(.5),de(),w([])},m=async(a,i=[],c=!0)=>{try{await ue(["webhook"],[a.receiver],c,i)}catch(y){V.error(y.response?y.response.statusText:y.message)}},g=async(a,i,c,y=[],F=!0)=>{if(a.stopPropagation(),us(i,c)>=4){V.warning(o("notification.resendLimit"));return}if(!Fe.includes(c)){await m(i,y,F);return}if(a){const q=a.currentTarget,M=q.getBoundingClientRect();P.anchorEl=q,P.position={top:M.top+window.scrollY,left:M.left+window.scrollX}}$({channel:c});try{const q=await le(c,i.receiver);await ye(1),$({channel:c,result:q}),(typeof q=="boolean"&&q||Rt(q)&&Object.values(q).every(M=>!!M))&&(await s([c],[i.receiver],F),k.anchorEl||(await ye(.5),ce()))}catch(q){V.error(q.message)}},j=a=>{S(i=>({...i,dateRange:a,page:1}))},T=(a,i,c,y)=>{a.stopPropagation();const F=c.filter(K=>K!==i);S(K=>({...K,[y]:F,page:1}))},R=X(()=>[{label:o("notification.receiver"),name:"receiver",width:200,options:{filter:!1,customBodyRenderLite:a=>{const{receiverUser:i,receiver:c}=E[a];return i?e.jsxs(v,{"data-cy":`member-name-${i.fullName}`,display:"flex",alignItems:"center",gap:1,justifyContent:"flex-start",children:[e.jsx(at,{src:`${i.avatar}?imageFilter=resize&w=48&h=48`,size:32,did:c,shape:"circle",style:{borderRadius:"100%",overflow:"hidden"}}),e.jsx(xe,{children:i.fullName})]},c):e.jsx(Tt,{size:14,responsive:!1,compact:!0,copyable:!1,did:c})}}},{label:"Wallet",name:"walletSendStatus",width:200,options:{setCellProps:()=>({className:"sent-status-cell"}),filter:!0,filterType:"custom",filterList:p.walletSendStatus??[],customFilterListOptions:{render:a=>e.jsx(me,{list:a,label:"Wallet",onDelete:(i,c)=>{i.stopPropagation(),T(i,c,R[1].options.filterList,"walletSendStatus")}}),update:Ce},filterOptions:{names:O,fullWidth:!0,logic:Ne,display:(a,i,c,y)=>e.jsx(Ie,{label:"Wallet",filterList:a,onChange:i,index:c,column:y,filterValues:O})},customBodyRenderLite:a=>{const{walletSendStatus:i,walletSendAt:c,walletSendFailedReason:y}=E[a];return e.jsx(pe,{status:i,updatedAt:c,reason:y,channel:"wallet",onResend:F=>g(F,E[a],"wallet",[],!1)})}}},{label:"Push Kit",name:"pushKitSendStatus",width:200,options:{setCellProps:()=>({className:"sent-status-cell"}),customBodyRenderLite:a=>{const{pushKitSendStatus:i,pushKitSendAt:c,pushKitSendFailedReason:y}=E[a];return e.jsx(pe,{status:i,updatedAt:c,reason:y,channel:"pushkit",onResend:F=>g(F,E[a],"pushKit",[],!1)})},filter:!0,filterType:"custom",filterList:p.pushKitSendStatus??[],customFilterListOptions:{render:a=>e.jsx(me,{list:a,label:"Push Kit",onDelete:(i,c)=>{i.stopPropagation(),T(i,c,R[2].options.filterList,"pushKitSendStatus")}}),update:Ce},filterOptions:{names:O,fullWidth:!0,logic:Ne,display:(a,i,c,y)=>e.jsx(Ie,{label:"Push Kit",filterList:a,onChange:i,index:c,column:y,filterValues:O})}}},{label:"Email",name:"emailSendStatus",width:200,options:{setCellProps:()=>({className:"sent-status-cell"}),customBodyRenderLite:a=>{const{emailSendStatus:i,emailSendAt:c,emailSendFailedReason:y}=E[a];return e.jsx(pe,{status:i,updatedAt:c,reason:y,channel:"email",onResend:F=>g(F,E[a],"email",[],!1)})},filter:!0,filterType:"custom",filterList:p.emailSendStatus??[],customFilterListOptions:{render:a=>e.jsx(me,{list:a,label:"Email",onDelete:(i,c)=>{i.stopPropagation(),T(i,c,R[3].options.filterList,"emailSendStatus")}}),update:Ce},filterOptions:{names:O,fullWidth:!0,logic:Ne,display:(a,i,c,y)=>e.jsx(Ie,{label:"Email",filterList:a,onChange:i,index:c,column:y,filterValues:O})}}},{label:"Webhook",name:"webhook",width:200,options:{filter:!1,setCellProps:()=>({className:"sent-status-cell"}),customBodyRenderLite:a=>{const{webhook:i}=E[a];if(!i)return null;const c=Object.entries(i)[0];if(!c)return null;const[y,F]=c,K=F[0];return e.jsx(v,{display:"flex",flexDirection:"column",gap:1,children:e.jsxs(v,{className:"webhook-item",fontSize:12,children:[e.jsx(xe,{maxLength:30,children:y},y),e.jsx(pe,{status:K.status,updatedAt:K.sendAt,reason:K.failedReason,channel:"webhook",onResend:q=>g(q,E[a],"webhook",[y],!1)})]},y)})}}},{label:o("common.createdAt"),name:"createdAt",width:100,options:{filter:!1,customBodyRenderLite:a=>{const{createdAt:i}=E[a];return e.jsx(it,{value:i,locale:r,shouldUpdate:!0})}}}],[E,r,p,o]),H=[e.jsx(Ue,{value:p.dateRange,onChange:j},"date-picker"),e.jsx(ke,{variant:"contained",size:"small",color:"primary",loading:B,startIcon:e.jsx(Ht,{}),onClick:()=>_(),sx:{".MuiButton-startIcon":{mr:"2px"}},style:{marginLeft:8},children:o("common.refresh")},"refresh")];return e.jsx(v,{sx:{overflow:"auto",".MuiTableCell-head":{whiteSpace:"nowrap",fontWeight:"bold"},".MuiTableCell-root":{paddingRight:"8px",whiteSpace:"nowrap"}},children:e.jsx(hs,{children:e.jsxs(ot,{theme:b,children:[e.jsx(dt,{className:"receivers-table",locale:r,loading:B,columns:R,data:E,onChange:se,options:ae,customButtons:H,components:{TableFilterList:a=>e.jsx($e,{...a,itemComponent:i=>e.jsx(Te,{...i,canDelete:()=>!1})})}}),P.anchorEl&&e.jsx(Oe,{open:!!P.anchorEl,anchorReference:"anchorPosition",anchorPosition:P.position,onClose:ce,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},children:e.jsxs(gs,{children:[e.jsxs(G,{variant:"body1",component:"div",className:"check-title",children:[I==null?void 0:I.channel," Checking"]}),e.jsx(v,{display:"flex",flexDirection:"column",sx:{gap:"4px"},children:je(I==null?void 0:I.channel).map(a=>{var F,K;const{type:i,pass:c,fail:y}=a;return!(I!=null&&I.result)||(F=I==null?void 0:I.result)!=null&&F[i]?e.jsxs(G,{variant:"body1",component:"div",className:"check-item",display:"flex",alignItems:"center",sx:{gap:"4px",color:(K=I==null?void 0:I.result)!=null&&K[i]?Se.success.main:"inherit"},children:[I!=null&&I.result?e.jsx(ft,{}):e.jsx(tt,{size:12,sx:{color:Se.primary.main}}),e.jsx("span",{children:c})]},i):e.jsxs(G,{variant:"body1",component:"div",display:"flex",alignItems:"center",className:"check-item",sx:{gap:"4px",color:Se.error.main},children:[e.jsx(mt,{}),e.jsx("span",{children:y})]},i)})})]})}),k.anchorEl&&e.jsx(Oe,{open:!!k.anchorEl,anchorReference:"anchorPosition",anchorPosition:k.position,onClose:de,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},children:e.jsx(He,{loading:n,onCancel:de,onConfirm:h})})]})})})}const ms=x.memo(jt),hs=re.div`
|
|
2
2
|
td.MuiTableCell-footer {
|
|
3
3
|
border: none !important;
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{cG as qm,bm as s2,
|
|
1
|
+
import{cG as qm,bm as s2,ia as tT,bf as Km,cU as jm,bi as l2,r as u2,bg as Jm}from"./index-B8IA5mbU.js";/*! *****************************************************************************
|
|
2
2
|
Copyright (c) Microsoft Corporation.
|
|
3
3
|
|
|
4
4
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as $,j as e,P as a,n as _,b7 as Y,k as N,bi as ee,N as i,L as te,r as p,e as A,i as M,d as re,$ as ne,C as se,m as oe,J as v,a as h,F as V,b,de as ie,M as ae,bx as me,aI as le,df as ce,G as C,A as D,p as de,l as ue,z as pe,bq as fe}from"./index-
|
|
1
|
+
import{u as $,j as e,P as a,n as _,b7 as Y,k as N,bi as ee,N as i,L as te,r as p,e as A,i as M,d as re,$ as ne,C as se,m as oe,J as v,a as h,F as V,b,de as ie,M as ae,bx as me,aI as le,df as ce,G as C,A as D,p as de,l as ue,z as pe,bq as fe}from"./index-B8IA5mbU.js";import{T as ge}from"./index-Cy666DOY.js";import{T as he}from"./traffic-CTPgH40k.js";import{D as ye}from"./index-zsz18EZU.js";import{x as P}from"./index-BJHGOv7L.js";import{C as xe,M as T}from"./memory-C_p3X92I.js";import{C as ve}from"./CardContent-Dk0Md6L4.js";import{w as Ce}from"./withStyles-DWhl0Lx-.js";import{_ as je}from"./useLocalStorage-CRy7LFYG.js";import{T as Ie,a as be}from"./ToggleButtonGroup-Dldk8U9s.js";import"./iframe-D-LcA3MK.js";import"./ChevronLeft-CDs40tmH.js";import"./ChevronRight-CFfmouwT.js";import"./index-B0UMNJnN.js";import"./base-chart-C63mtC4Z.js";import"./index-Cb3Huyfb.js";import"./AdapterDayjs-Cf6af3xk.js";import"./useThemeProps-C3mE_-3Z.js";import"./CSSTransition-Byi2ne4y.js";import"./refType-Dqlqmha-.js";import"./TableRow-Cyof88VP.js";import"./emotion-react.browser.esm-CSjORkdU.js";import"./ViewColumn-BSxTQVZ-.js";import"./Search-DGRuo7t-.js";import"./Clear-CmPKgcDo.js";import"./Delete-CiU1bEBu.js";import"./index-DbTX57bM.js";import"./MoreVert-BZT8paNd.js";import"./TableSearch-CxutcmoF.js";import"./getValidReactChildren-CxwCdnNW.js";function Me(){const{api:s,info:o}=$();return e.jsx(he,{client:s,did:o.did})}var B=function(s){return e.jsxs("svg",{...s,children:[e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.08295 3.2C2.08295 2.58144 2.58439 2.08 3.20295 2.08H28.8029C29.4215 2.08 29.9229 2.58144 29.9229 3.2V13.44C29.9229 14.0586 29.4215 14.56 28.8029 14.56H3.20295C2.58439 14.56 2.08295 14.0586 2.08295 13.44V3.2ZM4.32295 4.32V12.32H27.6829V4.32H4.32295ZM2.08295 18.56C2.08295 17.9414 2.58439 17.44 3.20295 17.44H28.8029C29.4215 17.44 29.9229 17.9414 29.9229 18.56V28.8C29.9229 29.4186 29.4215 29.92 28.8029 29.92H3.20295C2.58439 29.92 2.08295 29.4186 2.08295 28.8V18.56ZM4.32295 19.68V27.68H27.6829V19.68H4.32295Z",fill:"currentColor"}),e.jsx("path",{d:"M8.96297 7.04001H7.68297C7.51323 7.04001 7.35044 7.10744 7.23042 7.22746C7.1104 7.34748 7.04297 7.51027 7.04297 7.68001V8.96001C7.04297 9.12975 7.1104 9.29253 7.23042 9.41256C7.35044 9.53258 7.51323 9.60001 7.68297 9.60001H8.96297C9.13271 9.60001 9.29549 9.53258 9.41552 9.41256C9.53554 9.29253 9.60297 9.12975 9.60297 8.96001V7.68001C9.60297 7.51027 9.53554 7.34748 9.41552 7.22746C9.29549 7.10744 9.13271 7.04001 8.96297 7.04001ZM8.96297 22.4H7.68297C7.51323 22.4 7.35044 22.4674 7.23042 22.5875C7.1104 22.7075 7.04297 22.8703 7.04297 23.04V24.32C7.04297 24.4897 7.1104 24.6525 7.23042 24.7726C7.35044 24.8926 7.51323 24.96 7.68297 24.96H8.96297C9.13271 24.96 9.29549 24.8926 9.41552 24.7726C9.53554 24.6525 9.60297 24.4897 9.60297 24.32V23.04C9.60297 22.8703 9.53554 22.7075 9.41552 22.5875C9.29549 22.4674 9.13271 22.4 8.96297 22.4ZM14.083 7.04001H12.803C12.6332 7.04001 12.4704 7.10744 12.3504 7.22746C12.2304 7.34748 12.163 7.51027 12.163 7.68001V8.96001C12.163 9.12975 12.2304 9.29253 12.3504 9.41256C12.4704 9.53258 12.6332 9.60001 12.803 9.60001H14.083C14.2527 9.60001 14.4155 9.53258 14.5355 9.41256C14.6555 9.29253 14.723 9.12975 14.723 8.96001V7.68001C14.723 7.51027 14.6555 7.34748 14.5355 7.22746C14.4155 7.10744 14.2527 7.04001 14.083 7.04001ZM14.083 22.4H12.803C12.6332 22.4 12.4704 22.4674 12.3504 22.5875C12.2304 22.7075 12.163 22.8703 12.163 23.04V24.32C12.163 24.4897 12.2304 24.6525 12.3504 24.7726C12.4704 24.8926 12.6332 24.96 12.803 24.96H14.083C14.2527 24.96 14.4155 24.8926 14.5355 24.7726C14.6555 24.6525 14.723 24.4897 14.723 24.32V23.04C14.723 22.8703 14.6555 22.7075 14.5355 22.5875C14.4155 22.4674 14.2527 22.4 14.083 22.4Z",fill:"currentColor"})]})};B.defaultProps={width:"32",height:"32",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"};B.displayName="server";function L({style:s,title:o,value:d,graph:m,description:f,empty:u}){return e.jsx(Ne,{children:e.jsxs(ve,{style:{...s},children:[e.jsx(N,{sx:{fontSize:14},color:"text.secondary",children:o}),u&&ee.isValidElement(u)?e.jsx(i,{color:"text.secondary",display:"flex",justifyContent:"center",alignItems:"center",style:{height:150},children:u}):e.jsxs(e.Fragment,{children:[e.jsx(N,{variant:"h5",component:"div",mt:1,children:d}),m,!!f&&e.jsx(i,{display:"flex",sx:{fontSize:12,marginTop:3},color:"text.secondary",children:f})]})]})})}L.propTypes={style:a.object,title:a.node,value:a.node,graph:a.node,description:a.any,empty:a.node};L.defaultProps={style:{},title:null,value:null,graph:null,empty:null,description:null};const Ne=_(Y)`
|
|
2
2
|
.card-content {
|
|
3
3
|
height: 150px;
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{io as hl,ip as pl,iq as Er,ir as ne,is as ei,it as ti,iu as ri,iv as ni,iw as ii,c1 as qr,ix as ml,iy as gl,c0 as Lr,iz as ua,iA as vl,dh as yl,P as F,dn as bl,cj as xl,iB as _l,iC as jl,g5 as wl,iD as Sl,c5 as da,b$ as si,bZ as tr,iE as fa,iF as ha,iG as pa,r as H,i0 as ma,iH as ga,j as e,c4 as Ml,iI as Cl,fD as va,iJ as ya,dz as Rl,iK as kl,iL as $l,dT as Pl,dD as Ol,ay as Tl,iM as Al,iN as Il,iO as Dl,iP as El,iQ as ql,iR as Ll,iS as Bl,iT as zl,iU as Nl,iV as Fl,iW as Hl,iX as Wl,iY as Vl,iZ as Zl,i_ as Ul,i$ as Gl,j0 as Kl,j1 as Jl,j2 as Yl,j3 as Xl,dG as Ql,dF as ec,j4 as tc,j5 as rc,j6 as nc,av as ic,dW as sc,dX as ac,d_ as oc,j7 as lc,d$ as cc,e0 as uc,j8 as dc,j9 as fc,ja as hc,jb as pc,jc as mc,jd as gc,je as vc,jf as yc,jg as bc,jh as xc,ji as _c,jj as jc,jk as wc,jl as Sc,jm as Mc,jn as Cc,e1 as Rc,e2 as kc,e3 as ba,e4 as $c,jo as Pc,jp as Oc,jq as Tc,jr as Ac,js as Ic,jt as Dc,ju as Ec,jv as qc,jw as Lc,jx as Bc,jy as zc,jz as Nc,jA as Fc,jB as Hc,jC as Wc,jD as Vc,jE as Zc,e6 as Uc,e8 as Gc,jF as Kc,jG as Jc,jH as Yc,jI as Xc,jJ as Qc,jK as eu,jL as tu,jM as ru,dN as nu,jN as iu,dO as su,H as au,dk as ou,jO as lu,jP as cu,i2 as xa,bi as Ke,d5 as uu,h$ as _a,jQ as Xr,jR as Ir,jS as Qi,jT as du,i4 as fu,jU as hu,jV as pu,jW as mu,bP as gu,aQ as ot,aR as K,a5 as Ye,ep as je,fl as ja,eb as vu,by as yu,fk as bu,V as xu,e as it,t as ue,N,C as Dt,fS as Gn,n as mt,ej as ai,bn as wa,hm as _u,b7 as Sa,cA as ju,cS as wu,dx as Su,k as _e,fi as Kn,b as Ge,a_ as rt,br as Xe,jX as Mu,bF as oi,bk as ze,A as ae,bE as li,m as et,o as Ma,q as Cu,v as Ca,af as Ru,J as Ra,gF as ku,jY as $u,ax as Pu,aZ as qe,X as rr,D as Ct,B as Ee,s as Ou,Y as Tu,Z as Jn,jZ as Au,d8 as Et,j_ as Iu,fn as Du,I as yt,F as ce,j$ as Eu,cZ as es,W as qu,g1 as ka,aC as Je,aW as ts,fT as ir,cv as V,Q as Le,aI as ye,aU as gt,bD as qt,k0 as Lu,k1 as Bu,k2 as zu,a4 as Nu,k3 as rs,c8 as nr,k4 as Fu,fj as at,am as Lt,x as $a,bz as Yn,O as Hu,cI as Pa,d9 as Wu,gM as an,k5 as Vu,be as Zu,g as Uu,cu as Dr,aM as Qr,k6 as Gu,d3 as st,k7 as Ku,k8 as lt,hy as ht,k9 as Oa,ka as ci,kb as ui,kc as Ju,kd as Ta,ke as Yu,a0 as xt,kf as Xu,bm as Qu,aj as ns,a2 as Aa,bo as en,kg as Ia,bc as e1,hG as Mt,fU as Da,cX as Ea,E as t1,bb as is,fV as r1,fW as n1,G as Tn,M as i1,bx as s1}from"./index-B2VuOb4T.js";import{F as qa,R as La,s as a1,L as jt,d as o1,B as l1}from"./preference-Bx-c5Q2Y.js";import{d as ss}from"./ChevronRight-BhM33GF3.js";import{T as tn}from"./index-BF4vf6id.js";import{w as ar,P as c1}from"./permission-DTthelu1.js";import{u as di}from"./index-BRRY3VLK.js";import{d as Ba}from"./Done-C9FHJdQ0.js";import{E as u1,g as d1}from"./chain-BHqPLd89.js";import{d as f1}from"./ArrowDropDown-CUWlyoV4.js";import{B as h1}from"./ButtonGroup-Djxp9GV8.js";import{a as as,A as p1}from"./Autocomplete-CuIaboOl.js";import{S as J,B as m1}from"./index-DDEC_Kd4.js";import{C as g1,R as v1,d as y1}from"./Public-CZtu3y_2.js";import{u as nt}from"./blocklet-Dj7-7T3f.js";import{C as b1}from"./click-to-copy-CaV3f1zY.js";import{u as on}from"./team-B2fYu72j.js";import{I as za}from"./index-eb0zP4qu.js";import{V as x1,K as _1}from"./status-BEZ5kRKV.js";import{S as pt}from"./Switch-v96fFUVN.js";import{E as j1}from"./index-C6uxeWL5.js";import{p as Na,c as w1,a as S1,b as M1,u as C1,d as R1,e as k1,H as $1,D as ln}from"./index-Xck-gZ1a.js";import{u as Rt,C as Q,b as os}from"./index.esm-C-ANFUiM.js";import{S as cn}from"./switch-control-B3dTSZzV.js";import{S as P1}from"./index-CmNGzNDe.js";import{d as ls}from"./Delete-BEDhfjgM.js";import{d as cs}from"./Add-B4ZxigzZ.js";import{S as O1}from"./Slider-DoZh9gZt.js";import"./index-GUAc0qkG.js";import{C as T1}from"./index-rKYT_6qC.js";import{u as Fa}from"./use-mobile-pZqk7eRQ.js";import{S as An}from"./simple-select-Dmiac-kN.js";import{d as A1}from"./actions-DKMplt8L.js";import{r as I1}from"./refType-Dh8-m1kl.js";import{C as D1}from"./CSSTransition-Bd8ftQ2v.js";import{C as E1}from"./CardContent-B3U2Afde.js";import{R as Ha,a as Wa}from"./url-evaluation-BzcyBhf_.js";import"./omit-fcUn_miO.js";import"./index-DCqblcAS.js";import"./index-CGeoqmfc.js";import"./iframe-DcIfpfxi.js";import"./getValidReactChildren-BK3p7HMr.js";import"./ListSubheader-DVU9b242.js";import"./collapse-CWe0kq4t.js";import"./ErrorOutline-HeG61pGN.js";import"./TableRow-DMNYoxLV.js";import"./useThemeProps-CdW8lLMN.js";import"./emotion-react.browser.esm-zhWsWQqH.js";import"./ViewColumn-YTkBMCPT.js";import"./Search-B9sPCbKU.js";import"./Clear-bgnUq6y0.js";import"./MoreVert-D4ECIeFy.js";import"./TableSearch-CIJv0sa5.js";import"./useLocalStorage-DGcI4VdJ.js";import"./get-safe-url-0JvnPl3q.js";const q1=Object.freeze(Object.defineProperty({__proto__:null,default:hl,useDefaultProps:pl},Symbol.toStringTag,{value:"Module"})),L1={},B1=L1,z1=ne({prop:"displayPrint",cssProperty:!1,transform:c=>({"@media print":{display:c}})}),N1=ne({prop:"display"}),F1=ne({prop:"overflow"}),H1=ne({prop:"textOverflow"}),W1=ne({prop:"visibility"}),V1=ne({prop:"whiteSpace"}),fi=Er(z1,N1,F1,H1,W1,V1),Va=ne({prop:"flexBasis"}),Za=ne({prop:"flexDirection"}),Ua=ne({prop:"flexWrap"}),Ga=ne({prop:"justifyContent"}),Ka=ne({prop:"alignItems"}),Ja=ne({prop:"alignContent"}),Ya=ne({prop:"order"}),Xa=ne({prop:"flex"}),Qa=ne({prop:"flexGrow"}),eo=ne({prop:"flexShrink"}),to=ne({prop:"alignSelf"}),ro=ne({prop:"justifyItems"}),no=ne({prop:"justifySelf"}),Z1=Er(Va,Za,Ua,Ga,Ka,Ja,Ya,Xa,Qa,eo,to,ro,no),hi=Z1,io=ne({prop:"position"}),so=ne({prop:"zIndex",themeKey:"zIndex"}),ao=ne({prop:"top"}),oo=ne({prop:"right"}),lo=ne({prop:"bottom"}),co=ne({prop:"left"}),pi=Er(io,so,ao,oo,lo,co),U1=ne({prop:"boxShadow",themeKey:"shadows"}),mi=U1,uo=ne({prop:"fontFamily",themeKey:"typography"}),fo=ne({prop:"fontSize",themeKey:"typography"}),ho=ne({prop:"fontStyle",themeKey:"typography"}),po=ne({prop:"fontWeight",themeKey:"typography"}),mo=ne({prop:"letterSpacing"}),go=ne({prop:"textTransform"}),vo=ne({prop:"lineHeight"}),yo=ne({prop:"textAlign"}),bo=ne({prop:"typography",cssProperty:!1,themeKey:"typography"}),G1=Er(bo,uo,fo,ho,po,mo,vo,yo,go),gi=G1,us={borders:ei.filterProps,display:fi.filterProps,flexbox:hi.filterProps,grid:ti.filterProps,positions:pi.filterProps,palette:ri.filterProps,shadows:mi.filterProps,sizing:ni.filterProps,spacing:ii.filterProps,typography:gi.filterProps},K1={borders:ei,display:fi,flexbox:hi,grid:ti,positions:pi,palette:ri,shadows:mi,sizing:ni,spacing:ii,typography:gi},J1=Object.keys(us).reduce((c,C)=>(us[C].forEach(P=>{c[P]=K1[C]}),c),{});function Y1(c,C,P){const S={[c]:C,theme:P},$=J1[c];return $?$(S):{[c]:C}}const X1=Object.freeze(Object.defineProperty({__proto__:null,default:qr,globalStateClasses:ml,isGlobalState:gl},Symbol.toStringTag,{value:"Module"})),Q1=Object.freeze(Object.defineProperty({__proto__:null,default:Lr},Symbol.toStringTag,{value:"Module"})),ed=Lr("MuiBox",["root"]),td=ua({defaultClassName:ed.root,generateClassName:vl.generate}),rd=td,nd=Object.freeze(Object.defineProperty({__proto__:null,default:yl},Symbol.toStringTag,{value:"Module"}));function id(c,C){return()=>null}const sd=id(F.elementType),ad=Object.freeze(Object.defineProperty({__proto__:null,default:sd},Symbol.toStringTag,{value:"Module"})),od=Object.freeze(Object.defineProperty({__proto__:null,default:I1},Symbol.toStringTag,{value:"Module"})),ld=Object.freeze(Object.defineProperty({__proto__:null,default:bl},Symbol.toStringTag,{value:"Module"})),cd=Object.freeze(Object.defineProperty({__proto__:null,default:xl},Symbol.toStringTag,{value:"Module"})),ud=Object.freeze(Object.defineProperty({__proto__:null,Timeout:_l,default:jl},Symbol.toStringTag,{value:"Module"})),dd=Object.freeze(Object.defineProperty({__proto__:null,default:wl,teardown:Sl},Symbol.toStringTag,{value:"Module"})),fd=Object.freeze(Object.defineProperty({__proto__:null,default:da},Symbol.toStringTag,{value:"Module"})),hd=["cssVarPrefix","shouldSkipGeneratingVar"];function pd(c){const{cssVarPrefix:C,shouldSkipGeneratingVar:P}=c,S=si(c,hd);return tr({},c,Na(S,{prefix:C,shouldSkipGeneratingVar:P}))}const md="5.17.1",gd=5,vd=17,yd=1,bd=null,xd=null,_d=fa(),jd=_d;function wd(c){return qr("MuiContainer",c)}const Sd=Lr("MuiContainer",["root","disableGutters","fixed","maxWidthXs","maxWidthSm","maxWidthMd","maxWidthLg","maxWidthXl"]),Md=Sd,Cd=(c,C)=>c.filter(P=>C.includes(P)),Bt=(c,C,P)=>{const S=c.keys[0];Array.isArray(C)?C.forEach(($,u)=>{P((x,t)=>{u<=c.keys.length-1&&(u===0?Object.assign(x,t):x[c.up(c.keys[u])]=t)},$)}):C&&typeof C=="object"?(Object.keys(C).length>c.keys.length?c.keys:Cd(c.keys,Object.keys(C))).forEach(u=>{if(c.keys.indexOf(u)!==-1){const x=C[u];x!==void 0&&P((t,v)=>{S===u?Object.assign(t,v):t[c.up(u)]=v},x)}}):(typeof C=="number"||typeof C=="string")&&P(($,u)=>{Object.assign($,u)},C)};function bt(c){return c?`Level${c}`:""}function Br(c){return c.unstable_level>0&&c.container}function xo(c){return function(P){return`var(--Grid-${P}Spacing${bt(c.unstable_level)})`}}function vi(c){return function(P){return c.unstable_level===0?`var(--Grid-${P}Spacing)`:`var(--Grid-${P}Spacing${bt(c.unstable_level-1)})`}}function yi(c){return c.unstable_level===0?"var(--Grid-columns)":`var(--Grid-columns${bt(c.unstable_level-1)})`}const Rd=({theme:c,ownerState:C})=>{const P=xo(C),S={};return Bt(c.breakpoints,C.gridSize,($,u)=>{let x={};u===!0&&(x={flexBasis:0,flexGrow:1,maxWidth:"100%"}),u==="auto"&&(x={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof u=="number"&&(x={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${u} / ${yi(C)}${Br(C)?` + ${P("column")}`:""})`}),$(S,x)}),S},kd=({theme:c,ownerState:C})=>{const P={};return Bt(c.breakpoints,C.gridOffset,(S,$)=>{let u={};$==="auto"&&(u={marginLeft:"auto"}),typeof $=="number"&&(u={marginLeft:$===0?"0px":`calc(100% * ${$} / ${yi(C)})`}),S(P,u)}),P},$d=({theme:c,ownerState:C})=>{if(!C.container)return{};const P=Br(C)?{[`--Grid-columns${bt(C.unstable_level)}`]:yi(C)}:{"--Grid-columns":12};return Bt(c.breakpoints,C.columns,(S,$)=>{S(P,{[`--Grid-columns${bt(C.unstable_level)}`]:$})}),P},Pd=({theme:c,ownerState:C})=>{if(!C.container)return{};const P=vi(C),S=Br(C)?{[`--Grid-rowSpacing${bt(C.unstable_level)}`]:P("row")}:{};return Bt(c.breakpoints,C.rowSpacing,($,u)=>{var x;$(S,{[`--Grid-rowSpacing${bt(C.unstable_level)}`]:typeof u=="string"?u:(x=c.spacing)==null?void 0:x.call(c,u)})}),S},Od=({theme:c,ownerState:C})=>{if(!C.container)return{};const P=vi(C),S=Br(C)?{[`--Grid-columnSpacing${bt(C.unstable_level)}`]:P("column")}:{};return Bt(c.breakpoints,C.columnSpacing,($,u)=>{var x;$(S,{[`--Grid-columnSpacing${bt(C.unstable_level)}`]:typeof u=="string"?u:(x=c.spacing)==null?void 0:x.call(c,u)})}),S},Td=({theme:c,ownerState:C})=>{if(!C.container)return{};const P={};return Bt(c.breakpoints,C.direction,(S,$)=>{S(P,{flexDirection:$})}),P},Ad=({ownerState:c})=>{const C=xo(c),P=vi(c);return tr({minWidth:0,boxSizing:"border-box"},c.container&&tr({display:"flex",flexWrap:"wrap"},c.wrap&&c.wrap!=="wrap"&&{flexWrap:c.wrap},{margin:`calc(${C("row")} / -2) calc(${C("column")} / -2)`},c.disableEqualOverflow&&{margin:`calc(${C("row")} * -1) 0px 0px calc(${C("column")} * -1)`}),(!c.container||Br(c))&&tr({padding:`calc(${P("row")} / 2) calc(${P("column")} / 2)`},(c.disableEqualOverflow||c.parentDisableEqualOverflow)&&{padding:`${P("row")} 0px 0px ${P("column")}`}))},Id=c=>{const C=[];return Object.entries(c).forEach(([P,S])=>{S!==!1&&S!==void 0&&C.push(`grid-${P}-${String(S)}`)}),C},Dd=(c,C="xs")=>{function P(S){return S===void 0?!1:typeof S=="string"&&!Number.isNaN(Number(S))||typeof S=="number"&&S>0}if(P(c))return[`spacing-${C}-${String(c)}`];if(typeof c=="object"&&!Array.isArray(c)){const S=[];return Object.entries(c).forEach(([$,u])=>{P(u)&&S.push(`spacing-${$}-${String(u)}`)}),S}return[]},Ed=c=>c===void 0?[]:typeof c=="object"?Object.entries(c).map(([C,P])=>`direction-${C}-${P}`):[`direction-xs-${String(c)}`],qd=["className","children","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow","unstable_level"],Ld=ha(),Bd=pa("div",{name:"MuiGrid",slot:"Root",overridesResolver:(c,C)=>C.root});function zd(c){return va({props:c,name:"MuiGrid",defaultTheme:Ld})}function _o(c={}){const{createStyledComponent:C=Bd,useThemeProps:P=zd,componentName:S="MuiGrid"}=c,$=H.createContext(void 0),u=(v,p)=>{const{container:f,direction:r,spacing:l,wrap:o,gridSize:i}=v,s={root:["root",f&&"container",o!=="wrap"&&`wrap-xs-${String(o)}`,...Ed(r),...Id(i),...f?Dd(l,p.breakpoints.keys[0]):[]]};return da(s,g=>qr(S,g),{})},x=C($d,Od,Pd,Rd,Td,Ad,kd),t=H.forwardRef(function(p,f){var r,l,o,i,s,g,a,n;const h=ma(),_=P(p),b=ga(_),k=H.useContext($),{className:R,children:m,columns:y=12,container:M=!1,component:I="div",direction:z="row",wrap:T="wrap",spacing:d=0,rowSpacing:j=d,columnSpacing:O=d,disableEqualOverflow:A,unstable_level:D=0}=b,q=si(b,qd);let B=A;D&&A!==void 0&&(B=p.disableEqualOverflow);const E={},w={},L={};Object.entries(q).forEach(([X,ie])=>{h.breakpoints.values[X]!==void 0?E[X]=ie:h.breakpoints.values[X.replace("Offset","")]!==void 0?w[X.replace("Offset","")]=ie:L[X]=ie});const W=(r=p.columns)!=null?r:D?void 0:y,Z=(l=p.spacing)!=null?l:D?void 0:d,U=(o=(i=p.rowSpacing)!=null?i:p.spacing)!=null?o:D?void 0:j,re=(s=(g=p.columnSpacing)!=null?g:p.spacing)!=null?s:D?void 0:O,G=tr({},b,{level:D,columns:W,container:M,direction:z,wrap:T,spacing:Z,rowSpacing:U,columnSpacing:re,gridSize:E,gridOffset:w,disableEqualOverflow:(a=(n=B)!=null?n:k)!=null?a:!1,parentDisableEqualOverflow:k}),ee=u(G,h);let Qe=e.jsx(x,tr({ref:f,as:I,ownerState:G,className:Ml(ee.root,R)},L,{children:H.Children.map(m,X=>{if(H.isValidElement(X)&&Cl(X,["Grid"])){var ie,ut;return H.cloneElement(X,{unstable_level:(ie=(ut=X.props)==null?void 0:ut.unstable_level)!=null?ie:D+1})}return X})}));return B!==void 0&&B!==(k??!1)&&(Qe=e.jsx($.Provider,{value:B,children:Qe})),Qe});return t.muiName="Grid",t}const Nd=_o(),Fd=Nd;function Hd(c){return qr("MuiGrid",c)}const Wd=[0,1,2,3,4,5,6,7,8,9,10],Vd=["column-reverse","column","row-reverse","row"],Zd=["nowrap","wrap-reverse","wrap"],cr=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Ud=Lr("MuiGrid",["root","container","item",...Wd.map(c=>`spacing-xs-${c}`),...Vd.map(c=>`direction-xs-${c}`),...Zd.map(c=>`wrap-xs-${c}`),...cr.map(c=>`grid-xs-${c}`),...cr.map(c=>`grid-sm-${c}`),...cr.map(c=>`grid-md-${c}`),...cr.map(c=>`grid-lg-${c}`),...cr.map(c=>`grid-xl-${c}`)]),Gd=Ud,Kd=ya(),Jd=Kd;function Yd(c){return qr("MuiStack",c)}const Xd=Lr("MuiStack",["root"]),Qd=Xd;function e0(){throw new Error(Rl(20))}const t0=Object.freeze(Object.defineProperty({__proto__:null,Box:rd,Container:jd,GlobalStyles:kl,RtlProvider:$l,Stack:Jd,StyledEngineProvider:Pl,ThemeProvider:Ol,Unstable_Grid:Fd,alignContent:Ja,alignItems:Ka,alignSelf:to,alpha:Tl,backgroundColor:Al,bgcolor:Il,blend:Dl,border:El,borderBottom:ql,borderBottomColor:Ll,borderColor:Bl,borderLeft:zl,borderLeftColor:Nl,borderRadius:Fl,borderRight:Hl,borderRightColor:Wl,borderTop:Vl,borderTopColor:Zl,borderTransform:Ul,borders:ei,bottom:lo,boxSizing:Gl,breakpoints:Kl,color:Jl,colorChannel:Yl,columnGap:Xl,compose:Er,containerClasses:Md,createBox:ua,createBreakpoints:Ql,createContainer:fa,createGrid:_o,createSpacing:ec,createStack:ya,createStyled:tc,createTheme:ha,createUnarySpacing:rc,createUnaryUnit:nc,css:ic,darken:sc,decomposeColor:ac,display:fi,emphasize:oc,experimental_sx:e0,flex:Xa,flexBasis:Va,flexDirection:Za,flexGrow:Qa,flexShrink:eo,flexWrap:Ua,flexbox:hi,fontFamily:uo,fontSize:fo,fontStyle:ho,fontWeight:po,gap:lc,getContainerUtilityClass:wd,getContrastRatio:cc,getGridUtilityClass:Hd,getLuminance:uc,getPath:dc,getStackUtilityClass:Yd,getStyleFromPropValue:fc,getStyleValue:hc,getThemeProps:pc,getValue:mc,grid:ti,gridArea:gc,gridAutoColumns:vc,gridAutoFlow:yc,gridAutoRows:bc,gridClasses:Gd,gridColumn:xc,gridRow:_c,gridTemplateAreas:jc,gridTemplateColumns:wc,gridTemplateRows:Sc,handleBreakpoints:Mc,height:Cc,hexToRgb:Rc,hslToRgb:kc,justifyContent:Ga,justifyItems:ro,justifySelf:no,keyframes:ba,left:co,letterSpacing:mo,lighten:$c,lineHeight:vo,major:gd,margin:Pc,marginKeys:Oc,maxHeight:Tc,maxWidth:Ac,mergeBreakpointsInOrder:Ic,minHeight:Dc,minWidth:Ec,minor:vd,order:Ya,outline:qc,outlineColor:Lc,padding:Bc,paddingKeys:zc,palette:ri,paletteTransform:Nc,patch:yd,position:io,positions:pi,preReleaseLabel:bd,preReleaseNumber:xd,private_safeAlpha:Fc,private_safeColorChannel:Hc,private_safeDarken:Wc,private_safeEmphasize:Vc,private_safeLighten:Zc,recomposeColor:Uc,responsivePropType:B1,rgbToHex:Gc,right:oo,rowGap:Kc,shadows:mi,shape:Jc,shouldForwardProp:Yc,sizeHeight:Xc,sizeWidth:Qc,sizing:ni,sizingTransform:eu,spacing:ii,stackClasses:Qd,style:ne,styled:pa,systemDefaultTheme:tu,textAlign:yo,textTransform:go,top:ao,typography:gi,typographyVariant:bo,unstable_createCssVarsProvider:w1,unstable_createCssVarsTheme:pd,unstable_createGetCssVar:S1,unstable_createStyleFunctionSx:ru,unstable_cssVarsParser:M1,unstable_defaultSxConfig:nu,unstable_extendSxProp:ga,unstable_getThemeValue:Y1,unstable_prepareCssVars:Na,unstable_resolveBreakpointValues:iu,unstable_styleFunctionSx:su,unstable_traverseBreakpoints:Bt,useMediaQuery:au,useRtl:ou,useTheme:ma,useThemeProps:va,useThemeWithoutDefault:lu,version:md,width:cu,zIndex:so},Symbol.toStringTag,{value:"Module"}));var jo=function(c){xa(C,c);function C(){for(var S,$=arguments.length,u=new Array($),x=0;x<$;x++)u[x]=arguments[x];return S=c.call.apply(c,[this].concat(u))||this,S.handleEnter=function(){for(var t=arguments.length,v=new Array(t),p=0;p<t;p++)v[p]=arguments[p];return S.handleLifecycle("onEnter",0,v)},S.handleEntering=function(){for(var t=arguments.length,v=new Array(t),p=0;p<t;p++)v[p]=arguments[p];return S.handleLifecycle("onEntering",0,v)},S.handleEntered=function(){for(var t=arguments.length,v=new Array(t),p=0;p<t;p++)v[p]=arguments[p];return S.handleLifecycle("onEntered",0,v)},S.handleExit=function(){for(var t=arguments.length,v=new Array(t),p=0;p<t;p++)v[p]=arguments[p];return S.handleLifecycle("onExit",1,v)},S.handleExiting=function(){for(var t=arguments.length,v=new Array(t),p=0;p<t;p++)v[p]=arguments[p];return S.handleLifecycle("onExiting",1,v)},S.handleExited=function(){for(var t=arguments.length,v=new Array(t),p=0;p<t;p++)v[p]=arguments[p];return S.handleLifecycle("onExited",1,v)},S}var P=C.prototype;return P.handleLifecycle=function($,u,x){var t,v=this.props.children,p=Ke.Children.toArray(v)[u];if(p.props[$]&&(t=p.props)[$].apply(t,x),this.props[$]){var f=p.props.nodeRef?void 0:uu.findDOMNode(this);this.props[$](f)}},P.render=function(){var $=this.props,u=$.children,x=$.in,t=si($,["children","in"]),v=Ke.Children.toArray(u),p=v[0],f=v[1];return delete t.onEnter,delete t.onEntering,delete t.onEntered,delete t.onExit,delete t.onExiting,delete t.onExited,Ke.createElement(_a,t,x?Ke.cloneElement(p,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):Ke.cloneElement(f,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},C}(Ke.Component);jo.propTypes={};const r0=jo;var Ur,Gr;function n0(c,C){return!(c===C||Ke.isValidElement(c)&&Ke.isValidElement(C)&&c.key!=null&&c.key===C.key)}var sr={out:"out-in",in:"in-out"},rn=function(C,P,S){return function(){var $;C.props[P]&&($=C.props)[P].apply($,arguments),S()}},i0=(Ur={},Ur[sr.out]=function(c){var C=c.current,P=c.changeState;return Ke.cloneElement(C,{in:!1,onExited:rn(C,"onExited",function(){P(Ir,null)})})},Ur[sr.in]=function(c){var C=c.current,P=c.changeState,S=c.children;return[C,Ke.cloneElement(S,{in:!0,onEntered:rn(S,"onEntered",function(){P(Ir)})})]},Ur),s0=(Gr={},Gr[sr.out]=function(c){var C=c.children,P=c.changeState;return Ke.cloneElement(C,{in:!0,onEntered:rn(C,"onEntered",function(){P(Xr,Ke.cloneElement(C,{in:!0}))})})},Gr[sr.in]=function(c){var C=c.current,P=c.children,S=c.changeState;return[Ke.cloneElement(C,{in:!1,onExited:rn(C,"onExited",function(){S(Xr,Ke.cloneElement(P,{in:!0}))})}),Ke.cloneElement(P,{in:!0})]},Gr),bi=function(c){xa(C,c);function C(){for(var S,$=arguments.length,u=new Array($),x=0;x<$;x++)u[x]=arguments[x];return S=c.call.apply(c,[this].concat(u))||this,S.state={status:Xr,current:null},S.appeared=!1,S.changeState=function(t,v){v===void 0&&(v=S.state.current),S.setState({status:t,current:v})},S}var P=C.prototype;return P.componentDidMount=function(){this.appeared=!0},C.getDerivedStateFromProps=function($,u){return $.children==null?{current:null}:u.status===Ir&&$.mode===sr.in?{status:Ir}:u.current&&n0(u.current,$.children)?{status:Qi}:{current:Ke.cloneElement($.children,{in:!0})}},P.render=function(){var $=this.props,u=$.children,x=$.mode,t=this.state,v=t.status,p=t.current,f={children:u,current:p,changeState:this.changeState,status:v},r;switch(v){case Ir:r=s0[x](f);break;case Qi:r=i0[x](f);break;case Xr:r=p}return Ke.createElement(du.Provider,{value:{isMounting:!this.appeared}},r)},C}(Ke.Component);bi.propTypes={};bi.defaultProps={mode:sr.out};const a0=bi,o0=Object.freeze(Object.defineProperty({__proto__:null,CSSTransition:D1,ReplaceTransition:r0,SwitchTransition:a0,Transition:fu,TransitionGroup:_a,config:hu},Symbol.toStringTag,{value:"Module"}));var l0=Array.prototype,ds=l0.splice;function c0(c,C,P,S){var $=mu,u=-1,x=C.length,t=c;for(c===C&&(C=pu(C));++u<x;)for(var v=0,p=C[u],f=p;(v=$(t,f,v))>-1;)t!==c&&ds.call(t,v,1),ds.call(c,v,1);return c}function u0(c,C){return c&&c.length&&C&&C.length?c0(c,C):c}var d0=gu(u0);const f0={width:256,height:250,body:'<path fill="#161614" d="M128.001 0C57.317 0 0 57.307 0 128.001c0 56.554 36.676 104.535 87.535 121.46c6.397 1.185 8.746-2.777 8.746-6.158c0-3.052-.12-13.135-.174-23.83c-35.61 7.742-43.124-15.103-43.124-15.103c-5.823-14.795-14.213-18.73-14.213-18.73c-11.613-7.944.876-7.78.876-7.78c12.853.902 19.621 13.19 19.621 13.19c11.417 19.568 29.945 13.911 37.249 10.64c1.149-8.272 4.466-13.92 8.127-17.116c-28.431-3.236-58.318-14.212-58.318-63.258c0-13.975 5-25.394 13.188-34.358c-1.329-3.224-5.71-16.242 1.24-33.874c0 0 10.749-3.44 35.21 13.121c10.21-2.836 21.16-4.258 32.038-4.307c10.878.049 21.837 1.47 32.066 4.307c24.431-16.56 35.165-13.12 35.165-13.12c6.967 17.63 2.584 30.65 1.255 33.873c8.207 8.964 13.173 20.383 13.173 34.358c0 49.163-29.944 59.988-58.447 63.157c4.591 3.972 8.682 11.762 8.682 23.704c0 17.126-.148 30.91-.148 35.126c0 3.407 2.304 7.398 8.792 6.14C219.37 232.5 256 184.537 256 128.002C256 57.307 198.691 0 128.001 0Zm-80.06 182.34c-.282.636-1.283.827-2.194.39c-.929-.417-1.45-1.284-1.15-1.922c.276-.655 1.279-.838 2.205-.399c.93.418 1.46 1.293 1.139 1.931Zm6.296 5.618c-.61.566-1.804.303-2.614-.591c-.837-.892-.994-2.086-.375-2.66c.63-.566 1.787-.301 2.626.591c.838.903 1 2.088.363 2.66Zm4.32 7.188c-.785.545-2.067.034-2.86-1.104c-.784-1.138-.784-2.503.017-3.05c.795-.547 2.058-.055 2.861 1.075c.782 1.157.782 2.522-.019 3.08Zm7.304 8.325c-.701.774-2.196.566-3.29-.49c-1.119-1.032-1.43-2.496-.726-3.27c.71-.776 2.213-.558 3.315.49c1.11 1.03 1.45 2.505.701 3.27Zm9.442 2.81c-.31 1.003-1.75 1.459-3.199 1.033c-1.448-.439-2.395-1.613-2.103-2.626c.301-1.01 1.747-1.484 3.207-1.028c1.446.436 2.396 1.602 2.095 2.622Zm10.744 1.193c.036 1.055-1.193 1.93-2.715 1.95c-1.53.034-2.769-.82-2.786-1.86c0-1.065 1.202-1.932 2.733-1.958c1.522-.03 2.768.818 2.768 1.868Zm10.555-.405c.182 1.03-.875 2.088-2.387 2.37c-1.485.271-2.861-.365-3.05-1.386c-.184-1.056.893-2.114 2.376-2.387c1.514-.263 2.868.356 3.061 1.403Z"/>'};var xi={},h0=K;Object.defineProperty(xi,"__esModule",{value:!0});var wo=xi.default=void 0,p0=h0(ot()),m0=e;wo=xi.default=(0,p0.default)((0,m0.jsx)("path",{d:"M3 18c0 .55.45 1 1 1h5v-2H4c-.55 0-1 .45-1 1M3 6c0 .55.45 1 1 1h9V5H4c-.55 0-1 .45-1 1m10 14v-1h7c.55 0 1-.45 1-1s-.45-1-1-1h-7v-1c0-.55-.45-1-1-1s-1 .45-1 1v4c0 .55.45 1 1 1s1-.45 1-1M7 10v1H4c-.55 0-1 .45-1 1s.45 1 1 1h3v1c0 .55.45 1 1 1s1-.45 1-1v-4c0-.55-.45-1-1-1s-1 .45-1 1m14 2c0-.55-.45-1-1-1h-9v2h9c.55 0 1-.45 1-1m-5-3c.55 0 1-.45 1-1V7h3c.55 0 1-.45 1-1s-.45-1-1-1h-3V4c0-.55-.45-1-1-1s-1 .45-1 1v4c0 .55.45 1 1 1"}),"TuneRounded");var _i={},g0=K;Object.defineProperty(_i,"__esModule",{value:!0});var So=_i.default=void 0,v0=g0(ot()),y0=e;So=_i.default=(0,v0.default)((0,y0.jsx)("path",{d:"M21 10h-8.35C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H13l2 2 2-2 2 2 4-4.04zM7 15c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3"}),"Key");var ji={},b0=K;Object.defineProperty(ji,"__esModule",{value:!0});var nn=ji.default=void 0,x0=b0(ot()),_0=e;nn=ji.default=(0,x0.default)((0,_0.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock");var wi={},j0=K;Object.defineProperty(wi,"__esModule",{value:!0});var Mo=wi.default=void 0,w0=j0(ot()),S0=e;Mo=wi.default=(0,w0.default)((0,S0.jsx)("path",{d:"M11 7 9.6 8.4l2.6 2.6H2v2h10.2l-2.6 2.6L11 17l5-5zm9 12h-8v2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-8v2h8z"}),"Login");var Si={},M0=K;Object.defineProperty(Si,"__esModule",{value:!0});var Co=Si.default=void 0,C0=M0(ot()),R0=e;Co=Si.default=(0,C0.default)((0,R0.jsx)("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2m6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1zm-2 1H8v-6c0-2.48 1.51-4.5 4-4.5s4 2.02 4 4.5z"}),"NotificationsNone");const k0={width:24,height:24,body:'<path fill="currentColor" d="M4.975 15q-.425 0-.7-.288T4 14q0-.425.288-.713T5 13h14.025q.425 0 .7.288T20 14q0 .425-.288.713T19 15H4.975Zm0 4q-.425 0-.7-.288T4 18q0-.425.288-.713T5 17h14.025q.425 0 .7.288T20 18q0 .425-.288.713T19 19H4.975Zm0-8q-.425 0-.7-.288T4 10q0-.425.288-.713T5 9h14.025q.425 0 .7.288T20 10q0 .425-.288.713T19 11H4.975Zm0-4q-.425 0-.7-.288T4 6q0-.425.288-.713T5 5h14.025q.425 0 .7.288T20 6q0 .425-.288.713T19 7H4.975Z"/>'},$0=k0;function Mi({triggers:c,onEnterEdit:C,disabled:P}){const S=Ke.useRef(null),[$,u]=Ke.useState(!1),x=p=>{u(!1),p()},t=()=>{u(p=>!p)},v=p=>{S.current&&S.current.contains(p.target)||u(!1)};return c.length===0?e.jsx(Ye,{"data-cy":"schema-form-item-edit",onClick:C,disabled:P,size:"large",children:e.jsx(u1,{})}):e.jsxs(e.Fragment,{children:[e.jsx(h1,{variant:"outlined",ref:S,"aria-label":"split button",children:e.jsx(je,{size:"large","aria-controls":$?"split-button-menu":void 0,"aria-expanded":$?"true":void 0,sx:{paddingLeft:"12px",paddingRight:"12px"},onClick:t,children:e.jsx(f1,{})})}),e.jsx(ja,{sx:{zIndex:9999},open:$,anchorEl:S.current,role:void 0,placement:"bottom-end",children:e.jsx(vu,{children:e.jsx(yu,{onClickAway:v,children:e.jsx(bu,{id:"split-button-menu",autoFocusItem:!0,children:c.map(p=>e.jsx(xu,{onClick:()=>x(p.handler),children:p.title},p.key))})})})})]})}Mi.propTypes={triggers:F.arrayOf(F.shape({key:F.string.isRequired,title:F.string.isRequired,handler:F.func.isRequired})),onEnterEdit:F.func.isRequired,disabled:F.bool.isRequired};Mi.defaultProps={triggers:[]};const fs=(c,C,P)=>c===null&&C&&P?"******":c?C?"******":c:"",P0=ba`
|
|
1
|
+
import{ip as hl,iq as pl,ir as Er,is as ne,it as ei,iu as ti,iv as ri,iw as ni,ix as ii,c1 as qr,iy as ml,iz as gl,c0 as Lr,iA as ua,iB as vl,dh as yl,P as F,dn as bl,cj as xl,iC as _l,iD as jl,g5 as wl,iE as Sl,c5 as da,b$ as si,bZ as tr,iF as fa,iG as ha,iH as pa,r as H,i1 as ma,iI as ga,j as e,c4 as Ml,iJ as Cl,fD as va,iK as ya,dz as Rl,iL as kl,iM as $l,dT as Pl,dD as Ol,ay as Tl,iN as Al,iO as Il,iP as Dl,iQ as El,iR as ql,iS as Ll,iT as Bl,iU as zl,iV as Nl,iW as Fl,iX as Hl,iY as Wl,iZ as Vl,i_ as Zl,i$ as Ul,j0 as Gl,j1 as Kl,j2 as Jl,j3 as Yl,j4 as Xl,dG as Ql,dF as ec,j5 as tc,j6 as rc,j7 as nc,av as ic,dW as sc,dX as ac,d_ as oc,j8 as lc,d$ as cc,e0 as uc,j9 as dc,ja as fc,jb as hc,jc as pc,jd as mc,je as gc,jf as vc,jg as yc,jh as bc,ji as xc,jj as _c,jk as jc,jl as wc,jm as Sc,jn as Mc,jo as Cc,e1 as Rc,e2 as kc,e3 as ba,e4 as $c,jp as Pc,jq as Oc,jr as Tc,js as Ac,jt as Ic,ju as Dc,jv as Ec,jw as qc,jx as Lc,jy as Bc,jz as zc,jA as Nc,jB as Fc,jC as Hc,jD as Wc,jE as Vc,jF as Zc,e6 as Uc,e8 as Gc,jG as Kc,jH as Jc,jI as Yc,jJ as Xc,jK as Qc,jL as eu,jM as tu,jN as ru,dN as nu,jO as iu,dO as su,H as au,dk as ou,jP as lu,jQ as cu,i3 as xa,bi as Ke,d5 as uu,i0 as _a,jR as Xr,jS as Ir,jT as Qi,jU as du,i5 as fu,jV as hu,jW as pu,jX as mu,bP as gu,aQ as ot,aR as K,a5 as Ye,ep as je,fl as ja,eb as vu,by as yu,fk as bu,V as xu,e as it,t as ue,N,C as Dt,fS as Gn,n as mt,ej as ai,bn as wa,hn as _u,b7 as Sa,cA as ju,cS as wu,dx as Su,k as _e,fi as Kn,b as Ge,a_ as rt,br as Xe,jY as Mu,bF as oi,bk as ze,A as ae,bE as li,m as et,o as Ma,q as Cu,v as Ca,af as Ru,J as Ra,gF as ku,jZ as $u,ax as Pu,aZ as qe,X as rr,D as Ct,B as Ee,s as Ou,Y as Tu,Z as Jn,j_ as Au,d8 as Et,j$ as Iu,fn as Du,I as yt,F as ce,k0 as Eu,cZ as es,W as qu,g1 as ka,aC as Je,aW as ts,fT as ir,cv as V,Q as Le,aI as ye,aU as gt,bD as qt,k1 as Lu,k2 as Bu,k3 as zu,a4 as Nu,k4 as rs,c8 as nr,k5 as Fu,fj as at,am as Lt,x as $a,bz as Yn,O as Hu,cI as Pa,d9 as Wu,gM as an,k6 as Vu,be as Zu,g as Uu,cu as Dr,aM as Qr,k7 as Gu,d3 as st,k8 as Ku,k9 as lt,hz as ht,ka as Oa,kb as ci,kc as ui,kd as Ju,ke as Ta,kf as Yu,a0 as xt,kg as Xu,bm as Qu,aj as ns,a2 as Aa,bo as en,kh as Ia,bc as e1,hH as Mt,fU as Da,cX as Ea,E as t1,bb as is,fV as r1,fW as n1,G as Tn,M as i1,bx as s1}from"./index-B8IA5mbU.js";import{F as qa,R as La,s as a1,L as jt,d as o1,B as l1}from"./preference-QWJp9UJS.js";import{d as ss}from"./ChevronRight-CFfmouwT.js";import{T as tn}from"./index-Cy666DOY.js";import{w as ar,P as c1}from"./permission-JEjDz9i9.js";import{u as di}from"./index-DCo8_mUx.js";import{d as Ba}from"./Done-BFMi5HXU.js";import{E as u1,g as d1}from"./chain-DJhIX7OW.js";import{d as f1}from"./ArrowDropDown-CejcJzkX.js";import{B as h1}from"./ButtonGroup-BzAT8pGA.js";import{a as as,A as p1}from"./Autocomplete-PeF181FR.js";import{S as J,B as m1}from"./index-DUIS5TWY.js";import{C as g1,R as v1,d as y1}from"./Public-DSbGTo8s.js";import{u as nt}from"./blocklet-BzkaFDNW.js";import{C as b1}from"./click-to-copy-CYaDSQoy.js";import{u as on}from"./team-BcbX_cMl.js";import{I as za}from"./index-rZ1SBrH_.js";import{V as x1,K as _1}from"./status-DaQfjPiw.js";import{S as pt}from"./Switch-CG3jQlg3.js";import{E as j1}from"./index-DbTX57bM.js";import{p as Na,c as w1,a as S1,b as M1,u as C1,d as R1,e as k1,H as $1,D as ln}from"./index-zsz18EZU.js";import{u as Rt,C as Q,b as os}from"./index.esm-F8b32K2k.js";import{S as cn}from"./switch-control-BUF_yGeD.js";import{S as P1}from"./index-5OOYkflw.js";import{d as ls}from"./Delete-CiU1bEBu.js";import{d as cs}from"./Add-BFsFN1Gy.js";import{S as O1}from"./Slider-CS-gjd3v.js";import"./index-4aFZazff.js";import{C as T1}from"./index-B-SlNWYL.js";import{u as Fa}from"./use-mobile-DxY5BxAJ.js";import{S as An}from"./simple-select-DtUilbs1.js";import{d as A1}from"./actions-DNqu-9QQ.js";import{r as I1}from"./refType-Dqlqmha-.js";import{C as D1}from"./CSSTransition-Byi2ne4y.js";import{C as E1}from"./CardContent-Dk0Md6L4.js";import{R as Ha,a as Wa}from"./url-evaluation-DmRIkzYe.js";import"./omit-Bc4_KMtF.js";import"./index-CFkoE5Gw.js";import"./index-BblGFvvF.js";import"./iframe-D-LcA3MK.js";import"./getValidReactChildren-CxwCdnNW.js";import"./ListSubheader-BSK-B-Hs.js";import"./collapse-BhbkfN99.js";import"./ErrorOutline-CLZmnhnI.js";import"./TableRow-Cyof88VP.js";import"./useThemeProps-C3mE_-3Z.js";import"./emotion-react.browser.esm-CSjORkdU.js";import"./ViewColumn-BSxTQVZ-.js";import"./Search-DGRuo7t-.js";import"./Clear-CmPKgcDo.js";import"./MoreVert-BZT8paNd.js";import"./TableSearch-CxutcmoF.js";import"./useLocalStorage-CRy7LFYG.js";import"./get-safe-url-COP_ZxQz.js";const q1=Object.freeze(Object.defineProperty({__proto__:null,default:hl,useDefaultProps:pl},Symbol.toStringTag,{value:"Module"})),L1={},B1=L1,z1=ne({prop:"displayPrint",cssProperty:!1,transform:c=>({"@media print":{display:c}})}),N1=ne({prop:"display"}),F1=ne({prop:"overflow"}),H1=ne({prop:"textOverflow"}),W1=ne({prop:"visibility"}),V1=ne({prop:"whiteSpace"}),fi=Er(z1,N1,F1,H1,W1,V1),Va=ne({prop:"flexBasis"}),Za=ne({prop:"flexDirection"}),Ua=ne({prop:"flexWrap"}),Ga=ne({prop:"justifyContent"}),Ka=ne({prop:"alignItems"}),Ja=ne({prop:"alignContent"}),Ya=ne({prop:"order"}),Xa=ne({prop:"flex"}),Qa=ne({prop:"flexGrow"}),eo=ne({prop:"flexShrink"}),to=ne({prop:"alignSelf"}),ro=ne({prop:"justifyItems"}),no=ne({prop:"justifySelf"}),Z1=Er(Va,Za,Ua,Ga,Ka,Ja,Ya,Xa,Qa,eo,to,ro,no),hi=Z1,io=ne({prop:"position"}),so=ne({prop:"zIndex",themeKey:"zIndex"}),ao=ne({prop:"top"}),oo=ne({prop:"right"}),lo=ne({prop:"bottom"}),co=ne({prop:"left"}),pi=Er(io,so,ao,oo,lo,co),U1=ne({prop:"boxShadow",themeKey:"shadows"}),mi=U1,uo=ne({prop:"fontFamily",themeKey:"typography"}),fo=ne({prop:"fontSize",themeKey:"typography"}),ho=ne({prop:"fontStyle",themeKey:"typography"}),po=ne({prop:"fontWeight",themeKey:"typography"}),mo=ne({prop:"letterSpacing"}),go=ne({prop:"textTransform"}),vo=ne({prop:"lineHeight"}),yo=ne({prop:"textAlign"}),bo=ne({prop:"typography",cssProperty:!1,themeKey:"typography"}),G1=Er(bo,uo,fo,ho,po,mo,vo,yo,go),gi=G1,us={borders:ei.filterProps,display:fi.filterProps,flexbox:hi.filterProps,grid:ti.filterProps,positions:pi.filterProps,palette:ri.filterProps,shadows:mi.filterProps,sizing:ni.filterProps,spacing:ii.filterProps,typography:gi.filterProps},K1={borders:ei,display:fi,flexbox:hi,grid:ti,positions:pi,palette:ri,shadows:mi,sizing:ni,spacing:ii,typography:gi},J1=Object.keys(us).reduce((c,C)=>(us[C].forEach(P=>{c[P]=K1[C]}),c),{});function Y1(c,C,P){const S={[c]:C,theme:P},$=J1[c];return $?$(S):{[c]:C}}const X1=Object.freeze(Object.defineProperty({__proto__:null,default:qr,globalStateClasses:ml,isGlobalState:gl},Symbol.toStringTag,{value:"Module"})),Q1=Object.freeze(Object.defineProperty({__proto__:null,default:Lr},Symbol.toStringTag,{value:"Module"})),ed=Lr("MuiBox",["root"]),td=ua({defaultClassName:ed.root,generateClassName:vl.generate}),rd=td,nd=Object.freeze(Object.defineProperty({__proto__:null,default:yl},Symbol.toStringTag,{value:"Module"}));function id(c,C){return()=>null}const sd=id(F.elementType),ad=Object.freeze(Object.defineProperty({__proto__:null,default:sd},Symbol.toStringTag,{value:"Module"})),od=Object.freeze(Object.defineProperty({__proto__:null,default:I1},Symbol.toStringTag,{value:"Module"})),ld=Object.freeze(Object.defineProperty({__proto__:null,default:bl},Symbol.toStringTag,{value:"Module"})),cd=Object.freeze(Object.defineProperty({__proto__:null,default:xl},Symbol.toStringTag,{value:"Module"})),ud=Object.freeze(Object.defineProperty({__proto__:null,Timeout:_l,default:jl},Symbol.toStringTag,{value:"Module"})),dd=Object.freeze(Object.defineProperty({__proto__:null,default:wl,teardown:Sl},Symbol.toStringTag,{value:"Module"})),fd=Object.freeze(Object.defineProperty({__proto__:null,default:da},Symbol.toStringTag,{value:"Module"})),hd=["cssVarPrefix","shouldSkipGeneratingVar"];function pd(c){const{cssVarPrefix:C,shouldSkipGeneratingVar:P}=c,S=si(c,hd);return tr({},c,Na(S,{prefix:C,shouldSkipGeneratingVar:P}))}const md="5.17.1",gd=5,vd=17,yd=1,bd=null,xd=null,_d=fa(),jd=_d;function wd(c){return qr("MuiContainer",c)}const Sd=Lr("MuiContainer",["root","disableGutters","fixed","maxWidthXs","maxWidthSm","maxWidthMd","maxWidthLg","maxWidthXl"]),Md=Sd,Cd=(c,C)=>c.filter(P=>C.includes(P)),Bt=(c,C,P)=>{const S=c.keys[0];Array.isArray(C)?C.forEach(($,u)=>{P((x,t)=>{u<=c.keys.length-1&&(u===0?Object.assign(x,t):x[c.up(c.keys[u])]=t)},$)}):C&&typeof C=="object"?(Object.keys(C).length>c.keys.length?c.keys:Cd(c.keys,Object.keys(C))).forEach(u=>{if(c.keys.indexOf(u)!==-1){const x=C[u];x!==void 0&&P((t,v)=>{S===u?Object.assign(t,v):t[c.up(u)]=v},x)}}):(typeof C=="number"||typeof C=="string")&&P(($,u)=>{Object.assign($,u)},C)};function bt(c){return c?`Level${c}`:""}function Br(c){return c.unstable_level>0&&c.container}function xo(c){return function(P){return`var(--Grid-${P}Spacing${bt(c.unstable_level)})`}}function vi(c){return function(P){return c.unstable_level===0?`var(--Grid-${P}Spacing)`:`var(--Grid-${P}Spacing${bt(c.unstable_level-1)})`}}function yi(c){return c.unstable_level===0?"var(--Grid-columns)":`var(--Grid-columns${bt(c.unstable_level-1)})`}const Rd=({theme:c,ownerState:C})=>{const P=xo(C),S={};return Bt(c.breakpoints,C.gridSize,($,u)=>{let x={};u===!0&&(x={flexBasis:0,flexGrow:1,maxWidth:"100%"}),u==="auto"&&(x={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof u=="number"&&(x={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${u} / ${yi(C)}${Br(C)?` + ${P("column")}`:""})`}),$(S,x)}),S},kd=({theme:c,ownerState:C})=>{const P={};return Bt(c.breakpoints,C.gridOffset,(S,$)=>{let u={};$==="auto"&&(u={marginLeft:"auto"}),typeof $=="number"&&(u={marginLeft:$===0?"0px":`calc(100% * ${$} / ${yi(C)})`}),S(P,u)}),P},$d=({theme:c,ownerState:C})=>{if(!C.container)return{};const P=Br(C)?{[`--Grid-columns${bt(C.unstable_level)}`]:yi(C)}:{"--Grid-columns":12};return Bt(c.breakpoints,C.columns,(S,$)=>{S(P,{[`--Grid-columns${bt(C.unstable_level)}`]:$})}),P},Pd=({theme:c,ownerState:C})=>{if(!C.container)return{};const P=vi(C),S=Br(C)?{[`--Grid-rowSpacing${bt(C.unstable_level)}`]:P("row")}:{};return Bt(c.breakpoints,C.rowSpacing,($,u)=>{var x;$(S,{[`--Grid-rowSpacing${bt(C.unstable_level)}`]:typeof u=="string"?u:(x=c.spacing)==null?void 0:x.call(c,u)})}),S},Od=({theme:c,ownerState:C})=>{if(!C.container)return{};const P=vi(C),S=Br(C)?{[`--Grid-columnSpacing${bt(C.unstable_level)}`]:P("column")}:{};return Bt(c.breakpoints,C.columnSpacing,($,u)=>{var x;$(S,{[`--Grid-columnSpacing${bt(C.unstable_level)}`]:typeof u=="string"?u:(x=c.spacing)==null?void 0:x.call(c,u)})}),S},Td=({theme:c,ownerState:C})=>{if(!C.container)return{};const P={};return Bt(c.breakpoints,C.direction,(S,$)=>{S(P,{flexDirection:$})}),P},Ad=({ownerState:c})=>{const C=xo(c),P=vi(c);return tr({minWidth:0,boxSizing:"border-box"},c.container&&tr({display:"flex",flexWrap:"wrap"},c.wrap&&c.wrap!=="wrap"&&{flexWrap:c.wrap},{margin:`calc(${C("row")} / -2) calc(${C("column")} / -2)`},c.disableEqualOverflow&&{margin:`calc(${C("row")} * -1) 0px 0px calc(${C("column")} * -1)`}),(!c.container||Br(c))&&tr({padding:`calc(${P("row")} / 2) calc(${P("column")} / 2)`},(c.disableEqualOverflow||c.parentDisableEqualOverflow)&&{padding:`${P("row")} 0px 0px ${P("column")}`}))},Id=c=>{const C=[];return Object.entries(c).forEach(([P,S])=>{S!==!1&&S!==void 0&&C.push(`grid-${P}-${String(S)}`)}),C},Dd=(c,C="xs")=>{function P(S){return S===void 0?!1:typeof S=="string"&&!Number.isNaN(Number(S))||typeof S=="number"&&S>0}if(P(c))return[`spacing-${C}-${String(c)}`];if(typeof c=="object"&&!Array.isArray(c)){const S=[];return Object.entries(c).forEach(([$,u])=>{P(u)&&S.push(`spacing-${$}-${String(u)}`)}),S}return[]},Ed=c=>c===void 0?[]:typeof c=="object"?Object.entries(c).map(([C,P])=>`direction-${C}-${P}`):[`direction-xs-${String(c)}`],qd=["className","children","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow","unstable_level"],Ld=ha(),Bd=pa("div",{name:"MuiGrid",slot:"Root",overridesResolver:(c,C)=>C.root});function zd(c){return va({props:c,name:"MuiGrid",defaultTheme:Ld})}function _o(c={}){const{createStyledComponent:C=Bd,useThemeProps:P=zd,componentName:S="MuiGrid"}=c,$=H.createContext(void 0),u=(v,p)=>{const{container:f,direction:r,spacing:l,wrap:o,gridSize:i}=v,s={root:["root",f&&"container",o!=="wrap"&&`wrap-xs-${String(o)}`,...Ed(r),...Id(i),...f?Dd(l,p.breakpoints.keys[0]):[]]};return da(s,g=>qr(S,g),{})},x=C($d,Od,Pd,Rd,Td,Ad,kd),t=H.forwardRef(function(p,f){var r,l,o,i,s,g,a,n;const h=ma(),_=P(p),b=ga(_),k=H.useContext($),{className:R,children:m,columns:y=12,container:M=!1,component:I="div",direction:z="row",wrap:T="wrap",spacing:d=0,rowSpacing:j=d,columnSpacing:O=d,disableEqualOverflow:A,unstable_level:D=0}=b,q=si(b,qd);let B=A;D&&A!==void 0&&(B=p.disableEqualOverflow);const E={},w={},L={};Object.entries(q).forEach(([X,ie])=>{h.breakpoints.values[X]!==void 0?E[X]=ie:h.breakpoints.values[X.replace("Offset","")]!==void 0?w[X.replace("Offset","")]=ie:L[X]=ie});const W=(r=p.columns)!=null?r:D?void 0:y,Z=(l=p.spacing)!=null?l:D?void 0:d,U=(o=(i=p.rowSpacing)!=null?i:p.spacing)!=null?o:D?void 0:j,re=(s=(g=p.columnSpacing)!=null?g:p.spacing)!=null?s:D?void 0:O,G=tr({},b,{level:D,columns:W,container:M,direction:z,wrap:T,spacing:Z,rowSpacing:U,columnSpacing:re,gridSize:E,gridOffset:w,disableEqualOverflow:(a=(n=B)!=null?n:k)!=null?a:!1,parentDisableEqualOverflow:k}),ee=u(G,h);let Qe=e.jsx(x,tr({ref:f,as:I,ownerState:G,className:Ml(ee.root,R)},L,{children:H.Children.map(m,X=>{if(H.isValidElement(X)&&Cl(X,["Grid"])){var ie,ut;return H.cloneElement(X,{unstable_level:(ie=(ut=X.props)==null?void 0:ut.unstable_level)!=null?ie:D+1})}return X})}));return B!==void 0&&B!==(k??!1)&&(Qe=e.jsx($.Provider,{value:B,children:Qe})),Qe});return t.muiName="Grid",t}const Nd=_o(),Fd=Nd;function Hd(c){return qr("MuiGrid",c)}const Wd=[0,1,2,3,4,5,6,7,8,9,10],Vd=["column-reverse","column","row-reverse","row"],Zd=["nowrap","wrap-reverse","wrap"],cr=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Ud=Lr("MuiGrid",["root","container","item",...Wd.map(c=>`spacing-xs-${c}`),...Vd.map(c=>`direction-xs-${c}`),...Zd.map(c=>`wrap-xs-${c}`),...cr.map(c=>`grid-xs-${c}`),...cr.map(c=>`grid-sm-${c}`),...cr.map(c=>`grid-md-${c}`),...cr.map(c=>`grid-lg-${c}`),...cr.map(c=>`grid-xl-${c}`)]),Gd=Ud,Kd=ya(),Jd=Kd;function Yd(c){return qr("MuiStack",c)}const Xd=Lr("MuiStack",["root"]),Qd=Xd;function e0(){throw new Error(Rl(20))}const t0=Object.freeze(Object.defineProperty({__proto__:null,Box:rd,Container:jd,GlobalStyles:kl,RtlProvider:$l,Stack:Jd,StyledEngineProvider:Pl,ThemeProvider:Ol,Unstable_Grid:Fd,alignContent:Ja,alignItems:Ka,alignSelf:to,alpha:Tl,backgroundColor:Al,bgcolor:Il,blend:Dl,border:El,borderBottom:ql,borderBottomColor:Ll,borderColor:Bl,borderLeft:zl,borderLeftColor:Nl,borderRadius:Fl,borderRight:Hl,borderRightColor:Wl,borderTop:Vl,borderTopColor:Zl,borderTransform:Ul,borders:ei,bottom:lo,boxSizing:Gl,breakpoints:Kl,color:Jl,colorChannel:Yl,columnGap:Xl,compose:Er,containerClasses:Md,createBox:ua,createBreakpoints:Ql,createContainer:fa,createGrid:_o,createSpacing:ec,createStack:ya,createStyled:tc,createTheme:ha,createUnarySpacing:rc,createUnaryUnit:nc,css:ic,darken:sc,decomposeColor:ac,display:fi,emphasize:oc,experimental_sx:e0,flex:Xa,flexBasis:Va,flexDirection:Za,flexGrow:Qa,flexShrink:eo,flexWrap:Ua,flexbox:hi,fontFamily:uo,fontSize:fo,fontStyle:ho,fontWeight:po,gap:lc,getContainerUtilityClass:wd,getContrastRatio:cc,getGridUtilityClass:Hd,getLuminance:uc,getPath:dc,getStackUtilityClass:Yd,getStyleFromPropValue:fc,getStyleValue:hc,getThemeProps:pc,getValue:mc,grid:ti,gridArea:gc,gridAutoColumns:vc,gridAutoFlow:yc,gridAutoRows:bc,gridClasses:Gd,gridColumn:xc,gridRow:_c,gridTemplateAreas:jc,gridTemplateColumns:wc,gridTemplateRows:Sc,handleBreakpoints:Mc,height:Cc,hexToRgb:Rc,hslToRgb:kc,justifyContent:Ga,justifyItems:ro,justifySelf:no,keyframes:ba,left:co,letterSpacing:mo,lighten:$c,lineHeight:vo,major:gd,margin:Pc,marginKeys:Oc,maxHeight:Tc,maxWidth:Ac,mergeBreakpointsInOrder:Ic,minHeight:Dc,minWidth:Ec,minor:vd,order:Ya,outline:qc,outlineColor:Lc,padding:Bc,paddingKeys:zc,palette:ri,paletteTransform:Nc,patch:yd,position:io,positions:pi,preReleaseLabel:bd,preReleaseNumber:xd,private_safeAlpha:Fc,private_safeColorChannel:Hc,private_safeDarken:Wc,private_safeEmphasize:Vc,private_safeLighten:Zc,recomposeColor:Uc,responsivePropType:B1,rgbToHex:Gc,right:oo,rowGap:Kc,shadows:mi,shape:Jc,shouldForwardProp:Yc,sizeHeight:Xc,sizeWidth:Qc,sizing:ni,sizingTransform:eu,spacing:ii,stackClasses:Qd,style:ne,styled:pa,systemDefaultTheme:tu,textAlign:yo,textTransform:go,top:ao,typography:gi,typographyVariant:bo,unstable_createCssVarsProvider:w1,unstable_createCssVarsTheme:pd,unstable_createGetCssVar:S1,unstable_createStyleFunctionSx:ru,unstable_cssVarsParser:M1,unstable_defaultSxConfig:nu,unstable_extendSxProp:ga,unstable_getThemeValue:Y1,unstable_prepareCssVars:Na,unstable_resolveBreakpointValues:iu,unstable_styleFunctionSx:su,unstable_traverseBreakpoints:Bt,useMediaQuery:au,useRtl:ou,useTheme:ma,useThemeProps:va,useThemeWithoutDefault:lu,version:md,width:cu,zIndex:so},Symbol.toStringTag,{value:"Module"}));var jo=function(c){xa(C,c);function C(){for(var S,$=arguments.length,u=new Array($),x=0;x<$;x++)u[x]=arguments[x];return S=c.call.apply(c,[this].concat(u))||this,S.handleEnter=function(){for(var t=arguments.length,v=new Array(t),p=0;p<t;p++)v[p]=arguments[p];return S.handleLifecycle("onEnter",0,v)},S.handleEntering=function(){for(var t=arguments.length,v=new Array(t),p=0;p<t;p++)v[p]=arguments[p];return S.handleLifecycle("onEntering",0,v)},S.handleEntered=function(){for(var t=arguments.length,v=new Array(t),p=0;p<t;p++)v[p]=arguments[p];return S.handleLifecycle("onEntered",0,v)},S.handleExit=function(){for(var t=arguments.length,v=new Array(t),p=0;p<t;p++)v[p]=arguments[p];return S.handleLifecycle("onExit",1,v)},S.handleExiting=function(){for(var t=arguments.length,v=new Array(t),p=0;p<t;p++)v[p]=arguments[p];return S.handleLifecycle("onExiting",1,v)},S.handleExited=function(){for(var t=arguments.length,v=new Array(t),p=0;p<t;p++)v[p]=arguments[p];return S.handleLifecycle("onExited",1,v)},S}var P=C.prototype;return P.handleLifecycle=function($,u,x){var t,v=this.props.children,p=Ke.Children.toArray(v)[u];if(p.props[$]&&(t=p.props)[$].apply(t,x),this.props[$]){var f=p.props.nodeRef?void 0:uu.findDOMNode(this);this.props[$](f)}},P.render=function(){var $=this.props,u=$.children,x=$.in,t=si($,["children","in"]),v=Ke.Children.toArray(u),p=v[0],f=v[1];return delete t.onEnter,delete t.onEntering,delete t.onEntered,delete t.onExit,delete t.onExiting,delete t.onExited,Ke.createElement(_a,t,x?Ke.cloneElement(p,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):Ke.cloneElement(f,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},C}(Ke.Component);jo.propTypes={};const r0=jo;var Ur,Gr;function n0(c,C){return!(c===C||Ke.isValidElement(c)&&Ke.isValidElement(C)&&c.key!=null&&c.key===C.key)}var sr={out:"out-in",in:"in-out"},rn=function(C,P,S){return function(){var $;C.props[P]&&($=C.props)[P].apply($,arguments),S()}},i0=(Ur={},Ur[sr.out]=function(c){var C=c.current,P=c.changeState;return Ke.cloneElement(C,{in:!1,onExited:rn(C,"onExited",function(){P(Ir,null)})})},Ur[sr.in]=function(c){var C=c.current,P=c.changeState,S=c.children;return[C,Ke.cloneElement(S,{in:!0,onEntered:rn(S,"onEntered",function(){P(Ir)})})]},Ur),s0=(Gr={},Gr[sr.out]=function(c){var C=c.children,P=c.changeState;return Ke.cloneElement(C,{in:!0,onEntered:rn(C,"onEntered",function(){P(Xr,Ke.cloneElement(C,{in:!0}))})})},Gr[sr.in]=function(c){var C=c.current,P=c.children,S=c.changeState;return[Ke.cloneElement(C,{in:!1,onExited:rn(C,"onExited",function(){S(Xr,Ke.cloneElement(P,{in:!0}))})}),Ke.cloneElement(P,{in:!0})]},Gr),bi=function(c){xa(C,c);function C(){for(var S,$=arguments.length,u=new Array($),x=0;x<$;x++)u[x]=arguments[x];return S=c.call.apply(c,[this].concat(u))||this,S.state={status:Xr,current:null},S.appeared=!1,S.changeState=function(t,v){v===void 0&&(v=S.state.current),S.setState({status:t,current:v})},S}var P=C.prototype;return P.componentDidMount=function(){this.appeared=!0},C.getDerivedStateFromProps=function($,u){return $.children==null?{current:null}:u.status===Ir&&$.mode===sr.in?{status:Ir}:u.current&&n0(u.current,$.children)?{status:Qi}:{current:Ke.cloneElement($.children,{in:!0})}},P.render=function(){var $=this.props,u=$.children,x=$.mode,t=this.state,v=t.status,p=t.current,f={children:u,current:p,changeState:this.changeState,status:v},r;switch(v){case Ir:r=s0[x](f);break;case Qi:r=i0[x](f);break;case Xr:r=p}return Ke.createElement(du.Provider,{value:{isMounting:!this.appeared}},r)},C}(Ke.Component);bi.propTypes={};bi.defaultProps={mode:sr.out};const a0=bi,o0=Object.freeze(Object.defineProperty({__proto__:null,CSSTransition:D1,ReplaceTransition:r0,SwitchTransition:a0,Transition:fu,TransitionGroup:_a,config:hu},Symbol.toStringTag,{value:"Module"}));var l0=Array.prototype,ds=l0.splice;function c0(c,C,P,S){var $=mu,u=-1,x=C.length,t=c;for(c===C&&(C=pu(C));++u<x;)for(var v=0,p=C[u],f=p;(v=$(t,f,v))>-1;)t!==c&&ds.call(t,v,1),ds.call(c,v,1);return c}function u0(c,C){return c&&c.length&&C&&C.length?c0(c,C):c}var d0=gu(u0);const f0={width:256,height:250,body:'<path fill="#161614" d="M128.001 0C57.317 0 0 57.307 0 128.001c0 56.554 36.676 104.535 87.535 121.46c6.397 1.185 8.746-2.777 8.746-6.158c0-3.052-.12-13.135-.174-23.83c-35.61 7.742-43.124-15.103-43.124-15.103c-5.823-14.795-14.213-18.73-14.213-18.73c-11.613-7.944.876-7.78.876-7.78c12.853.902 19.621 13.19 19.621 13.19c11.417 19.568 29.945 13.911 37.249 10.64c1.149-8.272 4.466-13.92 8.127-17.116c-28.431-3.236-58.318-14.212-58.318-63.258c0-13.975 5-25.394 13.188-34.358c-1.329-3.224-5.71-16.242 1.24-33.874c0 0 10.749-3.44 35.21 13.121c10.21-2.836 21.16-4.258 32.038-4.307c10.878.049 21.837 1.47 32.066 4.307c24.431-16.56 35.165-13.12 35.165-13.12c6.967 17.63 2.584 30.65 1.255 33.873c8.207 8.964 13.173 20.383 13.173 34.358c0 49.163-29.944 59.988-58.447 63.157c4.591 3.972 8.682 11.762 8.682 23.704c0 17.126-.148 30.91-.148 35.126c0 3.407 2.304 7.398 8.792 6.14C219.37 232.5 256 184.537 256 128.002C256 57.307 198.691 0 128.001 0Zm-80.06 182.34c-.282.636-1.283.827-2.194.39c-.929-.417-1.45-1.284-1.15-1.922c.276-.655 1.279-.838 2.205-.399c.93.418 1.46 1.293 1.139 1.931Zm6.296 5.618c-.61.566-1.804.303-2.614-.591c-.837-.892-.994-2.086-.375-2.66c.63-.566 1.787-.301 2.626.591c.838.903 1 2.088.363 2.66Zm4.32 7.188c-.785.545-2.067.034-2.86-1.104c-.784-1.138-.784-2.503.017-3.05c.795-.547 2.058-.055 2.861 1.075c.782 1.157.782 2.522-.019 3.08Zm7.304 8.325c-.701.774-2.196.566-3.29-.49c-1.119-1.032-1.43-2.496-.726-3.27c.71-.776 2.213-.558 3.315.49c1.11 1.03 1.45 2.505.701 3.27Zm9.442 2.81c-.31 1.003-1.75 1.459-3.199 1.033c-1.448-.439-2.395-1.613-2.103-2.626c.301-1.01 1.747-1.484 3.207-1.028c1.446.436 2.396 1.602 2.095 2.622Zm10.744 1.193c.036 1.055-1.193 1.93-2.715 1.95c-1.53.034-2.769-.82-2.786-1.86c0-1.065 1.202-1.932 2.733-1.958c1.522-.03 2.768.818 2.768 1.868Zm10.555-.405c.182 1.03-.875 2.088-2.387 2.37c-1.485.271-2.861-.365-3.05-1.386c-.184-1.056.893-2.114 2.376-2.387c1.514-.263 2.868.356 3.061 1.403Z"/>'};var xi={},h0=K;Object.defineProperty(xi,"__esModule",{value:!0});var wo=xi.default=void 0,p0=h0(ot()),m0=e;wo=xi.default=(0,p0.default)((0,m0.jsx)("path",{d:"M3 18c0 .55.45 1 1 1h5v-2H4c-.55 0-1 .45-1 1M3 6c0 .55.45 1 1 1h9V5H4c-.55 0-1 .45-1 1m10 14v-1h7c.55 0 1-.45 1-1s-.45-1-1-1h-7v-1c0-.55-.45-1-1-1s-1 .45-1 1v4c0 .55.45 1 1 1s1-.45 1-1M7 10v1H4c-.55 0-1 .45-1 1s.45 1 1 1h3v1c0 .55.45 1 1 1s1-.45 1-1v-4c0-.55-.45-1-1-1s-1 .45-1 1m14 2c0-.55-.45-1-1-1h-9v2h9c.55 0 1-.45 1-1m-5-3c.55 0 1-.45 1-1V7h3c.55 0 1-.45 1-1s-.45-1-1-1h-3V4c0-.55-.45-1-1-1s-1 .45-1 1v4c0 .55.45 1 1 1"}),"TuneRounded");var _i={},g0=K;Object.defineProperty(_i,"__esModule",{value:!0});var So=_i.default=void 0,v0=g0(ot()),y0=e;So=_i.default=(0,v0.default)((0,y0.jsx)("path",{d:"M21 10h-8.35C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H13l2 2 2-2 2 2 4-4.04zM7 15c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3"}),"Key");var ji={},b0=K;Object.defineProperty(ji,"__esModule",{value:!0});var nn=ji.default=void 0,x0=b0(ot()),_0=e;nn=ji.default=(0,x0.default)((0,_0.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock");var wi={},j0=K;Object.defineProperty(wi,"__esModule",{value:!0});var Mo=wi.default=void 0,w0=j0(ot()),S0=e;Mo=wi.default=(0,w0.default)((0,S0.jsx)("path",{d:"M11 7 9.6 8.4l2.6 2.6H2v2h10.2l-2.6 2.6L11 17l5-5zm9 12h-8v2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-8v2h8z"}),"Login");var Si={},M0=K;Object.defineProperty(Si,"__esModule",{value:!0});var Co=Si.default=void 0,C0=M0(ot()),R0=e;Co=Si.default=(0,C0.default)((0,R0.jsx)("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2m6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1zm-2 1H8v-6c0-2.48 1.51-4.5 4-4.5s4 2.02 4 4.5z"}),"NotificationsNone");const k0={width:24,height:24,body:'<path fill="currentColor" d="M4.975 15q-.425 0-.7-.288T4 14q0-.425.288-.713T5 13h14.025q.425 0 .7.288T20 14q0 .425-.288.713T19 15H4.975Zm0 4q-.425 0-.7-.288T4 18q0-.425.288-.713T5 17h14.025q.425 0 .7.288T20 18q0 .425-.288.713T19 19H4.975Zm0-8q-.425 0-.7-.288T4 10q0-.425.288-.713T5 9h14.025q.425 0 .7.288T20 10q0 .425-.288.713T19 11H4.975Zm0-4q-.425 0-.7-.288T4 6q0-.425.288-.713T5 5h14.025q.425 0 .7.288T20 6q0 .425-.288.713T19 7H4.975Z"/>'},$0=k0;function Mi({triggers:c,onEnterEdit:C,disabled:P}){const S=Ke.useRef(null),[$,u]=Ke.useState(!1),x=p=>{u(!1),p()},t=()=>{u(p=>!p)},v=p=>{S.current&&S.current.contains(p.target)||u(!1)};return c.length===0?e.jsx(Ye,{"data-cy":"schema-form-item-edit",onClick:C,disabled:P,size:"large",children:e.jsx(u1,{})}):e.jsxs(e.Fragment,{children:[e.jsx(h1,{variant:"outlined",ref:S,"aria-label":"split button",children:e.jsx(je,{size:"large","aria-controls":$?"split-button-menu":void 0,"aria-expanded":$?"true":void 0,sx:{paddingLeft:"12px",paddingRight:"12px"},onClick:t,children:e.jsx(f1,{})})}),e.jsx(ja,{sx:{zIndex:9999},open:$,anchorEl:S.current,role:void 0,placement:"bottom-end",children:e.jsx(vu,{children:e.jsx(yu,{onClickAway:v,children:e.jsx(bu,{id:"split-button-menu",autoFocusItem:!0,children:c.map(p=>e.jsx(xu,{onClick:()=>x(p.handler),children:p.title},p.key))})})})})]})}Mi.propTypes={triggers:F.arrayOf(F.shape({key:F.string.isRequired,title:F.string.isRequired,handler:F.func.isRequired})),onEnterEdit:F.func.isRequired,disabled:F.bool.isRequired};Mi.defaultProps={triggers:[]};const fs=(c,C,P)=>c===null&&C&&P?"******":c?C?"******":c:"",P0=ba`
|
|
2
2
|
0%, 100% {
|
|
3
3
|
transform: scale(1) translateX(0);
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c0 as ft,c1 as ht,b9 as A,bY as $t,cf as jt,bZ as f,r as d,c2 as vt,b$ as nt,c4 as N,j as b,c5 as mt,dh as oe,di as Ft,dj as Ht,dk as At,dl as le,dm as re,c3 as rt,am as ne,dn as bt,dp as se,dq as ae}from"./index-B2VuOb4T.js";let Y;function Ot(){if(Y)return Y;const t=document.createElement("div"),e=document.createElement("div");return e.style.width="10px",e.style.height="1px",t.appendChild(e),t.dir="rtl",t.style.fontSize="14px",t.style.width="4px",t.style.height="1px",t.style.position="absolute",t.style.top="-1000px",t.style.overflow="scroll",document.body.appendChild(t),Y="reverse",t.scrollLeft>0?Y="default":(t.scrollLeft=1,t.scrollLeft===0&&(Y="negative")),document.body.removeChild(t),Y}function ie(t,e){const l=t.scrollLeft;if(e!=="rtl")return l;switch(Ot()){case"negative":return t.scrollWidth-t.clientWidth+l;case"reverse":return t.scrollWidth-t.clientWidth-l;default:return l}}function ce(t){return ht("MuiTab",t)}const k=ft("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),de=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],ue=t=>{const{classes:e,textColor:l,fullWidth:a,wrapped:s,icon:n,label:u,selected:v,disabled:p}=t,x={root:["root",n&&u&&"labelIcon",`textColor${jt(l)}`,a&&"fullWidth",s&&"wrapped",v&&"selected",p&&"disabled"],iconWrapper:["iconWrapper"]};return mt(x,ce,e)},be=A($t,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.root,l.label&&l.icon&&e.labelIcon,e[`textColor${jt(l.textColor)}`],l.fullWidth&&e.fullWidth,l.wrapped&&e.wrapped,{[`& .${k.iconWrapper}`]:e.iconWrapper}]}})(({theme:t,ownerState:e})=>f({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},e.label&&{flexDirection:e.iconPosition==="top"||e.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},e.icon&&e.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${k.iconWrapper}`]:f({},e.iconPosition==="top"&&{marginBottom:6},e.iconPosition==="bottom"&&{marginTop:6},e.iconPosition==="start"&&{marginRight:t.spacing(1)},e.iconPosition==="end"&&{marginLeft:t.spacing(1)})},e.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${k.selected}`]:{opacity:1},[`&.${k.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.textColor==="primary"&&{color:(t.vars||t).palette.text.secondary,[`&.${k.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${k.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.textColor==="secondary"&&{color:(t.vars||t).palette.text.secondary,[`&.${k.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${k.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},e.wrapped&&{fontSize:t.typography.pxToRem(12)})),St=d.forwardRef(function(e,l){const a=vt({props:e,name:"MuiTab"}),{className:s,disabled:n=!1,disableFocusRipple:u=!1,fullWidth:v,icon:p,iconPosition:x="top",indicator:B,label:y,onChange:m,onClick:w,onFocus:L,selected:T,selectionFollowsFocus:g,textColor:O="inherit",value:E,wrapped:st=!1}=a,X=nt(a,de),V=f({},a,{disabled:n,disableFocusRipple:u,selected:T,icon:!!p,iconPosition:x,label:!!y,fullWidth:v,textColor:O,wrapped:st}),D=ue(V),$=p&&y&&d.isValidElement(p)?d.cloneElement(p,{className:N(D.iconWrapper,p.props.className)}):p,J=R=>{!T&&m&&m(R,E),w&&w(R)},_=R=>{g&&!T&&m&&m(R,E),L&&L(R)};return b.jsxs(be,f({focusRipple:!u,className:N(D.root,s),ref:l,role:"tab","aria-selected":T,disabled:n,onClick:J,onFocus:_,ownerState:V,tabIndex:T?0:-1},X,{children:[x==="top"||x==="start"?b.jsxs(d.Fragment,{children:[$,y]}):b.jsxs(d.Fragment,{children:[y,$]}),B]}))});function pe(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function fe(t,e,l,a={},s=()=>{}){const{ease:n=pe,duration:u=300}=a;let v=null;const p=e[t];let x=!1;const B=()=>{x=!0},y=m=>{if(x){s(new Error("Animation cancelled"));return}v===null&&(v=m);const w=Math.min(1,(m-v)/u);if(e[t]=n(w)*(l-p)+p,w>=1){requestAnimationFrame(()=>{s(null)});return}requestAnimationFrame(y)};return p===l?(s(new Error("Element already at target position")),B):(requestAnimationFrame(y),B)}const he=["onChange"],ve={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function me(t){const{onChange:e}=t,l=nt(t,he),a=d.useRef(),s=d.useRef(null),n=()=>{a.current=s.current.offsetHeight-s.current.clientHeight};return oe(()=>{const u=Ft(()=>{const p=a.current;n(),p!==a.current&&e(a.current)}),v=Ht(s.current);return v.addEventListener("resize",u),()=>{u.clear(),v.removeEventListener("resize",u)}},[e]),d.useEffect(()=>{n(),e(a.current)},[e]),b.jsx("div",f({style:ve},l,{ref:s}))}function Se(t){return ht("MuiTabScrollButton",t)}const xe=ft("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),ge=["className","slots","slotProps","direction","orientation","disabled"],ye=t=>{const{classes:e,orientation:l,disabled:a}=t;return mt({root:["root",l,a&&"disabled"]},Se,e)},Ce=A($t,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.root,l.orientation&&e[l.orientation]]}})(({ownerState:t})=>f({width:40,flexShrink:0,opacity:.8,[`&.${xe.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),Be=d.forwardRef(function(e,l){var a,s;const n=vt({props:e,name:"MuiTabScrollButton"}),{className:u,slots:v={},slotProps:p={},direction:x}=n,B=nt(n,ge),y=At(),m=f({isRtl:y},n),w=ye(m),L=(a=v.StartScrollButtonIcon)!=null?a:le,T=(s=v.EndScrollButtonIcon)!=null?s:re,g=rt({elementType:L,externalSlotProps:p.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),O=rt({elementType:T,externalSlotProps:p.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return b.jsx(Ce,f({component:"div",className:N(w.root,u),ref:l,role:null,ownerState:m,tabIndex:null},B,{children:x==="left"?b.jsx(L,f({},g)):b.jsx(T,f({},O))}))});function we(t){return ht("MuiTabs",t)}const pt=ft("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Te=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Pt=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,kt=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,lt=(t,e,l)=>{let a=!1,s=l(t,e);for(;s;){if(s===t.firstChild){if(a)return;a=!0}const n=s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||n)s=l(t,s);else{s.focus();return}}},Me=t=>{const{vertical:e,fixed:l,hideScrollbar:a,scrollableX:s,scrollableY:n,centered:u,scrollButtonsHideMobile:v,classes:p}=t;return mt({root:["root",e&&"vertical"],scroller:["scroller",l&&"fixed",a&&"hideScrollbar",s&&"scrollableX",n&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",u&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",v&&"scrollButtonsHideMobile"],scrollableX:[s&&"scrollableX"],hideScrollbar:[a&&"hideScrollbar"]},we,p)},Ie=A("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[{[`& .${pt.scrollButtons}`]:e.scrollButtons},{[`& .${pt.scrollButtons}`]:l.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,l.vertical&&e.vertical]}})(({ownerState:t,theme:e})=>f({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{[`& .${pt.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}})),Ee=A("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.scroller,l.fixed&&e.fixed,l.hideScrollbar&&e.hideScrollbar,l.scrollableX&&e.scrollableX,l.scrollableY&&e.scrollableY]}})(({ownerState:t})=>f({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),Re=A("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.flexContainer,l.vertical&&e.flexContainerVertical,l.centered&&e.centered]}})(({ownerState:t})=>f({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})),ze=A("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(({ownerState:t,theme:e})=>f({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},t.indicatorColor==="primary"&&{backgroundColor:(e.vars||e).palette.primary.main},t.indicatorColor==="secondary"&&{backgroundColor:(e.vars||e).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})),We=A(me)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Nt={},xt=d.forwardRef(function(e,l){const a=vt({props:e,name:"MuiTabs"}),s=ne(),n=At(),{"aria-label":u,"aria-labelledby":v,action:p,centered:x=!1,children:B,className:y,component:m="div",allowScrollButtonsMobile:w=!1,indicatorColor:L="primary",onChange:T,orientation:g="horizontal",ScrollButtonComponent:O=Be,scrollButtons:E="auto",selectionFollowsFocus:st,slots:X={},slotProps:V={},TabIndicatorProps:D={},TabScrollButtonProps:$={},textColor:J="primary",value:_,variant:R="standard",visibleScrollbar:at=!1}=a,Xt=nt(a,Te),M=R==="scrollable",C=g==="vertical",K=C?"scrollTop":"scrollLeft",Q=C?"top":"left",tt=C?"bottom":"right",it=C?"clientHeight":"clientWidth",q=C?"height":"width",j=f({},a,{component:m,allowScrollButtonsMobile:w,indicatorColor:L,orientation:g,vertical:C,scrollButtons:E,textColor:J,variant:R,visibleScrollbar:at,fixed:!M,hideScrollbar:M&&!at,scrollableX:M&&!C,scrollableY:M&&C,centered:x&&!M,scrollButtonsHideMobile:!w}),W=Me(j),Dt=rt({elementType:X.StartScrollButtonIcon,externalSlotProps:V.startScrollButtonIcon,ownerState:j}),_t=rt({elementType:X.EndScrollButtonIcon,externalSlotProps:V.endScrollButtonIcon,ownerState:j}),[gt,Yt]=d.useState(!1),[F,yt]=d.useState(Nt),[Ct,Ut]=d.useState(!1),[Bt,Vt]=d.useState(!1),[wt,Kt]=d.useState(!1),[Tt,qt]=d.useState({overflow:"hidden",scrollbarWidth:0}),Mt=new Map,z=d.useRef(null),H=d.useRef(null),It=()=>{const o=z.current;let r;if(o){const i=o.getBoundingClientRect();r={clientWidth:o.clientWidth,scrollLeft:o.scrollLeft,scrollTop:o.scrollTop,scrollLeftNormalized:ie(o,n?"rtl":"ltr"),scrollWidth:o.scrollWidth,top:i.top,bottom:i.bottom,left:i.left,right:i.right}}let c;if(o&&_!==!1){const i=H.current.children;if(i.length>0){const h=i[Mt.get(_)];c=h?h.getBoundingClientRect():null}}return{tabsMeta:r,tabMeta:c}},G=bt(()=>{const{tabsMeta:o,tabMeta:r}=It();let c=0,i;if(C)i="top",r&&o&&(c=r.top-o.top+o.scrollTop);else if(i=n?"right":"left",r&&o){const S=n?o.scrollLeftNormalized+o.clientWidth-o.scrollWidth:o.scrollLeft;c=(n?-1:1)*(r[i]-o[i]+S)}const h={[i]:c,[q]:r?r[q]:0};if(isNaN(F[i])||isNaN(F[q]))yt(h);else{const S=Math.abs(F[i]-h[i]),I=Math.abs(F[q]-h[q]);(S>=1||I>=1)&&yt(h)}}),ct=(o,{animation:r=!0}={})=>{r?fe(K,z.current,o,{duration:s.transitions.duration.standard}):z.current[K]=o},Et=o=>{let r=z.current[K];C?r+=o:(r+=o*(n?-1:1),r*=n&&Ot()==="reverse"?-1:1),ct(r)},Rt=()=>{const o=z.current[it];let r=0;const c=Array.from(H.current.children);for(let i=0;i<c.length;i+=1){const h=c[i];if(r+h[it]>o){i===0&&(r=o);break}r+=h[it]}return r},Gt=()=>{Et(-1*Rt())},Zt=()=>{Et(Rt())},Jt=d.useCallback(o=>{qt({overflow:null,scrollbarWidth:o})},[]),Qt=()=>{const o={};o.scrollbarSizeListener=M?b.jsx(We,{onChange:Jt,className:N(W.scrollableX,W.hideScrollbar)}):null;const c=M&&(E==="auto"&&(Ct||Bt)||E===!0);return o.scrollButtonStart=c?b.jsx(O,f({slots:{StartScrollButtonIcon:X.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Dt},orientation:g,direction:n?"right":"left",onClick:Gt,disabled:!Ct},$,{className:N(W.scrollButtons,$.className)})):null,o.scrollButtonEnd=c?b.jsx(O,f({slots:{EndScrollButtonIcon:X.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:_t},orientation:g,direction:n?"left":"right",onClick:Zt,disabled:!Bt},$,{className:N(W.scrollButtons,$.className)})):null,o},zt=bt(o=>{const{tabsMeta:r,tabMeta:c}=It();if(!(!c||!r)){if(c[Q]<r[Q]){const i=r[K]+(c[Q]-r[Q]);ct(i,{animation:o})}else if(c[tt]>r[tt]){const i=r[K]+(c[tt]-r[tt]);ct(i,{animation:o})}}}),et=bt(()=>{M&&E!==!1&&Kt(!wt)});d.useEffect(()=>{const o=Ft(()=>{z.current&&G()});let r;const c=S=>{S.forEach(I=>{I.removedNodes.forEach(Z=>{var P;(P=r)==null||P.unobserve(Z)}),I.addedNodes.forEach(Z=>{var P;(P=r)==null||P.observe(Z)})}),o(),et()},i=Ht(z.current);i.addEventListener("resize",o);let h;return typeof ResizeObserver<"u"&&(r=new ResizeObserver(o),Array.from(H.current.children).forEach(S=>{r.observe(S)})),typeof MutationObserver<"u"&&(h=new MutationObserver(c),h.observe(H.current,{childList:!0})),()=>{var S,I;o.clear(),i.removeEventListener("resize",o),(S=h)==null||S.disconnect(),(I=r)==null||I.disconnect()}},[G,et]),d.useEffect(()=>{const o=Array.from(H.current.children),r=o.length;if(typeof IntersectionObserver<"u"&&r>0&&M&&E!==!1){const c=o[0],i=o[r-1],h={root:z.current,threshold:.99},S=ut=>{Ut(!ut[0].isIntersecting)},I=new IntersectionObserver(S,h);I.observe(c);const Z=ut=>{Vt(!ut[0].isIntersecting)},P=new IntersectionObserver(Z,h);return P.observe(i),()=>{I.disconnect(),P.disconnect()}}},[M,E,wt,B==null?void 0:B.length]),d.useEffect(()=>{Yt(!0)},[]),d.useEffect(()=>{G()}),d.useEffect(()=>{zt(Nt!==F)},[zt,F]),d.useImperativeHandle(p,()=>({updateIndicator:G,updateScrollButtons:et}),[G,et]);const Wt=b.jsx(ze,f({},D,{className:N(W.indicator,D.className),ownerState:j,style:f({},F,D.style)}));let ot=0;const te=d.Children.map(B,o=>{if(!d.isValidElement(o))return null;const r=o.props.value===void 0?ot:o.props.value;Mt.set(r,ot);const c=r===_;return ot+=1,d.cloneElement(o,f({fullWidth:R==="fullWidth",indicator:c&&!gt&&Wt,selected:c,selectionFollowsFocus:st,onChange:T,textColor:J,value:r},ot===1&&_===!1&&!o.props.tabIndex?{tabIndex:0}:{}))}),ee=o=>{const r=H.current,c=se(r).activeElement;if(c.getAttribute("role")!=="tab")return;let h=g==="horizontal"?"ArrowLeft":"ArrowUp",S=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&n&&(h="ArrowRight",S="ArrowLeft"),o.key){case h:o.preventDefault(),lt(r,c,kt);break;case S:o.preventDefault(),lt(r,c,Pt);break;case"Home":o.preventDefault(),lt(r,null,Pt);break;case"End":o.preventDefault(),lt(r,null,kt);break}},dt=Qt();return b.jsxs(Ie,f({className:N(W.root,y),ownerState:j,ref:l,as:m},Xt,{children:[dt.scrollButtonStart,dt.scrollbarSizeListener,b.jsxs(Ee,{className:W.scroller,ownerState:j,style:{overflow:Tt.overflow,[C?`margin${n?"Left":"Right"}`:"marginBottom"]:at?void 0:-Tt.scrollbarWidth},ref:z,children:[b.jsx(Re,{"aria-label":u,"aria-labelledby":v,"aria-orientation":g==="vertical"?"vertical":null,className:W.flexContainer,ownerState:j,onKeyDown:ee,ref:H,role:"tablist",children:te}),gt&&Wt]}),dt.scrollButtonEnd]}))}),Lt="index",U={tabs:`${Lt}-tabs`,tab:`${Lt}-tab`},Pe=ae(xt)(({theme:t})=>({[`& .${U.tabs}`]:{},[`& .${U.tab}`]:{fontSize:"0.875rem",[t.breakpoints.up("md")]:{fontSize:"1rem"}}}));function ke({tabs:t,current:e,onChange:l,iconPosition:a,...s}){return b.jsx(xt,{scrollButtons:"auto",value:e,onChange:(n,u)=>l(u),...s,variant:"scrollable",sx:{minHeight:"auto",".MuiTabs-scrollButtons.Mui-disabled":{opacity:.3,cursor:"not-allowed",pointerEvents:"auto"},".MuiTabs-scroller":{borderRadius:"100vw"},".MuiTabs-flexContainer":{borderRadius:"100vw",backgroundColor:"grey.100",padding:.5,display:"inline-flex",columnGap:.25,maxWidth:"100%",overflowX:"auto"},".MuiTab-root":{borderRadius:"100vw",border:"1px solid transparent",minHeight:"auto",lineHeight:1,py:1,color:"text.secondary",fontSize:"13px",fontWeight:"normal",textTransform:"capitalize",transition:"background-color 0.2s ease","&.Mui-selected, &:hover":{backgroundColor:"action.selected",borderColor:"grey.100",color:"grey.A700"}},".MuiTabs-indicator":{display:"none"},...s.sx},children:t.map(n=>b.jsx(St,{className:U.tab,value:n.value,label:n.label,icon:n.icon,iconPosition:a},n.value))})}function Ne({tabs:t,current:e,onChange:l,iconPosition:a,...s}){return b.jsx(xt,{scrollButtons:"auto",value:e,onChange:(n,u)=>l(u),...s,variant:"scrollable",sx:{minHeight:"auto",".MuiTabs-scrollButtons.Mui-disabled":{opacity:.3,cursor:"not-allowed",pointerEvents:"auto"},".MuiTabs-scroller":s.orientation!=="vertical"?{"&::after":{content:'""',display:"block",position:"sticky",left:0,zIndex:-1,width:"100%",height:"1px",backgroundColor:"grey.300"}}:{},".MuiTabs-flexContainer":{display:"inline-flex",columnGap:2.5,px:0,pb:.5},".MuiTab-root":{border:"1px solid transparent",minHeight:"auto",lineHeight:1,py:1,px:0,color:"text.secondary",fontSize:"14px",fontWeight:500,textTransform:"capitalize",minWidth:"auto","&.Mui-selected, &:hover":{color:"primary.main"}},".MuiTabs-indicator":{height:"1px",backgroundColor:"primary.main"},...s.sx},children:t.map(n=>b.jsx(St,{className:U.tab,value:n.value,label:n.label,icon:n.icon,iconPosition:a},n.value))})}function $e({tabs:t,current:e,onChange:l,variant:a,iconPosition:s,...n}){return a==="card"?b.jsx(ke,{...n,tabs:t,current:e,onChange:l,iconPosition:s}):a==="line"?b.jsx(Ne,{...n,tabs:t,current:e,onChange:l,iconPosition:s}):b.jsx(Pe,{scrollButtons:"auto",variant:"scrollable",value:e,onChange:(u,v)=>l(v),indicatorColor:"primary",...n,className:[U.tabs,n.className||""].join(" "),children:t.map(u=>b.jsx(St,{className:U.tab,value:u.value,label:u.label,icon:u.icon,iconPosition:s},u.value))})}export{$e as T,xt as a,St as b,Ot as d,ie as g,pt as t};
|
|
1
|
+
import{c0 as ft,c1 as ht,b9 as A,bY as $t,cf as jt,bZ as f,r as d,c2 as vt,b$ as nt,c4 as N,j as b,c5 as mt,dh as oe,di as Ft,dj as Ht,dk as At,dl as le,dm as re,c3 as rt,am as ne,dn as bt,dp as se,dq as ae}from"./index-B8IA5mbU.js";let Y;function Ot(){if(Y)return Y;const t=document.createElement("div"),e=document.createElement("div");return e.style.width="10px",e.style.height="1px",t.appendChild(e),t.dir="rtl",t.style.fontSize="14px",t.style.width="4px",t.style.height="1px",t.style.position="absolute",t.style.top="-1000px",t.style.overflow="scroll",document.body.appendChild(t),Y="reverse",t.scrollLeft>0?Y="default":(t.scrollLeft=1,t.scrollLeft===0&&(Y="negative")),document.body.removeChild(t),Y}function ie(t,e){const l=t.scrollLeft;if(e!=="rtl")return l;switch(Ot()){case"negative":return t.scrollWidth-t.clientWidth+l;case"reverse":return t.scrollWidth-t.clientWidth-l;default:return l}}function ce(t){return ht("MuiTab",t)}const k=ft("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),de=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],ue=t=>{const{classes:e,textColor:l,fullWidth:a,wrapped:s,icon:n,label:u,selected:v,disabled:p}=t,x={root:["root",n&&u&&"labelIcon",`textColor${jt(l)}`,a&&"fullWidth",s&&"wrapped",v&&"selected",p&&"disabled"],iconWrapper:["iconWrapper"]};return mt(x,ce,e)},be=A($t,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.root,l.label&&l.icon&&e.labelIcon,e[`textColor${jt(l.textColor)}`],l.fullWidth&&e.fullWidth,l.wrapped&&e.wrapped,{[`& .${k.iconWrapper}`]:e.iconWrapper}]}})(({theme:t,ownerState:e})=>f({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},e.label&&{flexDirection:e.iconPosition==="top"||e.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},e.icon&&e.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${k.iconWrapper}`]:f({},e.iconPosition==="top"&&{marginBottom:6},e.iconPosition==="bottom"&&{marginTop:6},e.iconPosition==="start"&&{marginRight:t.spacing(1)},e.iconPosition==="end"&&{marginLeft:t.spacing(1)})},e.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${k.selected}`]:{opacity:1},[`&.${k.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.textColor==="primary"&&{color:(t.vars||t).palette.text.secondary,[`&.${k.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${k.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.textColor==="secondary"&&{color:(t.vars||t).palette.text.secondary,[`&.${k.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${k.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},e.wrapped&&{fontSize:t.typography.pxToRem(12)})),St=d.forwardRef(function(e,l){const a=vt({props:e,name:"MuiTab"}),{className:s,disabled:n=!1,disableFocusRipple:u=!1,fullWidth:v,icon:p,iconPosition:x="top",indicator:B,label:y,onChange:m,onClick:w,onFocus:L,selected:T,selectionFollowsFocus:g,textColor:O="inherit",value:E,wrapped:st=!1}=a,X=nt(a,de),V=f({},a,{disabled:n,disableFocusRipple:u,selected:T,icon:!!p,iconPosition:x,label:!!y,fullWidth:v,textColor:O,wrapped:st}),D=ue(V),$=p&&y&&d.isValidElement(p)?d.cloneElement(p,{className:N(D.iconWrapper,p.props.className)}):p,J=R=>{!T&&m&&m(R,E),w&&w(R)},_=R=>{g&&!T&&m&&m(R,E),L&&L(R)};return b.jsxs(be,f({focusRipple:!u,className:N(D.root,s),ref:l,role:"tab","aria-selected":T,disabled:n,onClick:J,onFocus:_,ownerState:V,tabIndex:T?0:-1},X,{children:[x==="top"||x==="start"?b.jsxs(d.Fragment,{children:[$,y]}):b.jsxs(d.Fragment,{children:[y,$]}),B]}))});function pe(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function fe(t,e,l,a={},s=()=>{}){const{ease:n=pe,duration:u=300}=a;let v=null;const p=e[t];let x=!1;const B=()=>{x=!0},y=m=>{if(x){s(new Error("Animation cancelled"));return}v===null&&(v=m);const w=Math.min(1,(m-v)/u);if(e[t]=n(w)*(l-p)+p,w>=1){requestAnimationFrame(()=>{s(null)});return}requestAnimationFrame(y)};return p===l?(s(new Error("Element already at target position")),B):(requestAnimationFrame(y),B)}const he=["onChange"],ve={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function me(t){const{onChange:e}=t,l=nt(t,he),a=d.useRef(),s=d.useRef(null),n=()=>{a.current=s.current.offsetHeight-s.current.clientHeight};return oe(()=>{const u=Ft(()=>{const p=a.current;n(),p!==a.current&&e(a.current)}),v=Ht(s.current);return v.addEventListener("resize",u),()=>{u.clear(),v.removeEventListener("resize",u)}},[e]),d.useEffect(()=>{n(),e(a.current)},[e]),b.jsx("div",f({style:ve},l,{ref:s}))}function Se(t){return ht("MuiTabScrollButton",t)}const xe=ft("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),ge=["className","slots","slotProps","direction","orientation","disabled"],ye=t=>{const{classes:e,orientation:l,disabled:a}=t;return mt({root:["root",l,a&&"disabled"]},Se,e)},Ce=A($t,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.root,l.orientation&&e[l.orientation]]}})(({ownerState:t})=>f({width:40,flexShrink:0,opacity:.8,[`&.${xe.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),Be=d.forwardRef(function(e,l){var a,s;const n=vt({props:e,name:"MuiTabScrollButton"}),{className:u,slots:v={},slotProps:p={},direction:x}=n,B=nt(n,ge),y=At(),m=f({isRtl:y},n),w=ye(m),L=(a=v.StartScrollButtonIcon)!=null?a:le,T=(s=v.EndScrollButtonIcon)!=null?s:re,g=rt({elementType:L,externalSlotProps:p.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),O=rt({elementType:T,externalSlotProps:p.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return b.jsx(Ce,f({component:"div",className:N(w.root,u),ref:l,role:null,ownerState:m,tabIndex:null},B,{children:x==="left"?b.jsx(L,f({},g)):b.jsx(T,f({},O))}))});function we(t){return ht("MuiTabs",t)}const pt=ft("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Te=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Pt=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,kt=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,lt=(t,e,l)=>{let a=!1,s=l(t,e);for(;s;){if(s===t.firstChild){if(a)return;a=!0}const n=s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||n)s=l(t,s);else{s.focus();return}}},Me=t=>{const{vertical:e,fixed:l,hideScrollbar:a,scrollableX:s,scrollableY:n,centered:u,scrollButtonsHideMobile:v,classes:p}=t;return mt({root:["root",e&&"vertical"],scroller:["scroller",l&&"fixed",a&&"hideScrollbar",s&&"scrollableX",n&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",u&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",v&&"scrollButtonsHideMobile"],scrollableX:[s&&"scrollableX"],hideScrollbar:[a&&"hideScrollbar"]},we,p)},Ie=A("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[{[`& .${pt.scrollButtons}`]:e.scrollButtons},{[`& .${pt.scrollButtons}`]:l.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,l.vertical&&e.vertical]}})(({ownerState:t,theme:e})=>f({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{[`& .${pt.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}})),Ee=A("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.scroller,l.fixed&&e.fixed,l.hideScrollbar&&e.hideScrollbar,l.scrollableX&&e.scrollableX,l.scrollableY&&e.scrollableY]}})(({ownerState:t})=>f({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),Re=A("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.flexContainer,l.vertical&&e.flexContainerVertical,l.centered&&e.centered]}})(({ownerState:t})=>f({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})),ze=A("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(({ownerState:t,theme:e})=>f({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},t.indicatorColor==="primary"&&{backgroundColor:(e.vars||e).palette.primary.main},t.indicatorColor==="secondary"&&{backgroundColor:(e.vars||e).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})),We=A(me)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Nt={},xt=d.forwardRef(function(e,l){const a=vt({props:e,name:"MuiTabs"}),s=ne(),n=At(),{"aria-label":u,"aria-labelledby":v,action:p,centered:x=!1,children:B,className:y,component:m="div",allowScrollButtonsMobile:w=!1,indicatorColor:L="primary",onChange:T,orientation:g="horizontal",ScrollButtonComponent:O=Be,scrollButtons:E="auto",selectionFollowsFocus:st,slots:X={},slotProps:V={},TabIndicatorProps:D={},TabScrollButtonProps:$={},textColor:J="primary",value:_,variant:R="standard",visibleScrollbar:at=!1}=a,Xt=nt(a,Te),M=R==="scrollable",C=g==="vertical",K=C?"scrollTop":"scrollLeft",Q=C?"top":"left",tt=C?"bottom":"right",it=C?"clientHeight":"clientWidth",q=C?"height":"width",j=f({},a,{component:m,allowScrollButtonsMobile:w,indicatorColor:L,orientation:g,vertical:C,scrollButtons:E,textColor:J,variant:R,visibleScrollbar:at,fixed:!M,hideScrollbar:M&&!at,scrollableX:M&&!C,scrollableY:M&&C,centered:x&&!M,scrollButtonsHideMobile:!w}),W=Me(j),Dt=rt({elementType:X.StartScrollButtonIcon,externalSlotProps:V.startScrollButtonIcon,ownerState:j}),_t=rt({elementType:X.EndScrollButtonIcon,externalSlotProps:V.endScrollButtonIcon,ownerState:j}),[gt,Yt]=d.useState(!1),[F,yt]=d.useState(Nt),[Ct,Ut]=d.useState(!1),[Bt,Vt]=d.useState(!1),[wt,Kt]=d.useState(!1),[Tt,qt]=d.useState({overflow:"hidden",scrollbarWidth:0}),Mt=new Map,z=d.useRef(null),H=d.useRef(null),It=()=>{const o=z.current;let r;if(o){const i=o.getBoundingClientRect();r={clientWidth:o.clientWidth,scrollLeft:o.scrollLeft,scrollTop:o.scrollTop,scrollLeftNormalized:ie(o,n?"rtl":"ltr"),scrollWidth:o.scrollWidth,top:i.top,bottom:i.bottom,left:i.left,right:i.right}}let c;if(o&&_!==!1){const i=H.current.children;if(i.length>0){const h=i[Mt.get(_)];c=h?h.getBoundingClientRect():null}}return{tabsMeta:r,tabMeta:c}},G=bt(()=>{const{tabsMeta:o,tabMeta:r}=It();let c=0,i;if(C)i="top",r&&o&&(c=r.top-o.top+o.scrollTop);else if(i=n?"right":"left",r&&o){const S=n?o.scrollLeftNormalized+o.clientWidth-o.scrollWidth:o.scrollLeft;c=(n?-1:1)*(r[i]-o[i]+S)}const h={[i]:c,[q]:r?r[q]:0};if(isNaN(F[i])||isNaN(F[q]))yt(h);else{const S=Math.abs(F[i]-h[i]),I=Math.abs(F[q]-h[q]);(S>=1||I>=1)&&yt(h)}}),ct=(o,{animation:r=!0}={})=>{r?fe(K,z.current,o,{duration:s.transitions.duration.standard}):z.current[K]=o},Et=o=>{let r=z.current[K];C?r+=o:(r+=o*(n?-1:1),r*=n&&Ot()==="reverse"?-1:1),ct(r)},Rt=()=>{const o=z.current[it];let r=0;const c=Array.from(H.current.children);for(let i=0;i<c.length;i+=1){const h=c[i];if(r+h[it]>o){i===0&&(r=o);break}r+=h[it]}return r},Gt=()=>{Et(-1*Rt())},Zt=()=>{Et(Rt())},Jt=d.useCallback(o=>{qt({overflow:null,scrollbarWidth:o})},[]),Qt=()=>{const o={};o.scrollbarSizeListener=M?b.jsx(We,{onChange:Jt,className:N(W.scrollableX,W.hideScrollbar)}):null;const c=M&&(E==="auto"&&(Ct||Bt)||E===!0);return o.scrollButtonStart=c?b.jsx(O,f({slots:{StartScrollButtonIcon:X.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Dt},orientation:g,direction:n?"right":"left",onClick:Gt,disabled:!Ct},$,{className:N(W.scrollButtons,$.className)})):null,o.scrollButtonEnd=c?b.jsx(O,f({slots:{EndScrollButtonIcon:X.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:_t},orientation:g,direction:n?"left":"right",onClick:Zt,disabled:!Bt},$,{className:N(W.scrollButtons,$.className)})):null,o},zt=bt(o=>{const{tabsMeta:r,tabMeta:c}=It();if(!(!c||!r)){if(c[Q]<r[Q]){const i=r[K]+(c[Q]-r[Q]);ct(i,{animation:o})}else if(c[tt]>r[tt]){const i=r[K]+(c[tt]-r[tt]);ct(i,{animation:o})}}}),et=bt(()=>{M&&E!==!1&&Kt(!wt)});d.useEffect(()=>{const o=Ft(()=>{z.current&&G()});let r;const c=S=>{S.forEach(I=>{I.removedNodes.forEach(Z=>{var P;(P=r)==null||P.unobserve(Z)}),I.addedNodes.forEach(Z=>{var P;(P=r)==null||P.observe(Z)})}),o(),et()},i=Ht(z.current);i.addEventListener("resize",o);let h;return typeof ResizeObserver<"u"&&(r=new ResizeObserver(o),Array.from(H.current.children).forEach(S=>{r.observe(S)})),typeof MutationObserver<"u"&&(h=new MutationObserver(c),h.observe(H.current,{childList:!0})),()=>{var S,I;o.clear(),i.removeEventListener("resize",o),(S=h)==null||S.disconnect(),(I=r)==null||I.disconnect()}},[G,et]),d.useEffect(()=>{const o=Array.from(H.current.children),r=o.length;if(typeof IntersectionObserver<"u"&&r>0&&M&&E!==!1){const c=o[0],i=o[r-1],h={root:z.current,threshold:.99},S=ut=>{Ut(!ut[0].isIntersecting)},I=new IntersectionObserver(S,h);I.observe(c);const Z=ut=>{Vt(!ut[0].isIntersecting)},P=new IntersectionObserver(Z,h);return P.observe(i),()=>{I.disconnect(),P.disconnect()}}},[M,E,wt,B==null?void 0:B.length]),d.useEffect(()=>{Yt(!0)},[]),d.useEffect(()=>{G()}),d.useEffect(()=>{zt(Nt!==F)},[zt,F]),d.useImperativeHandle(p,()=>({updateIndicator:G,updateScrollButtons:et}),[G,et]);const Wt=b.jsx(ze,f({},D,{className:N(W.indicator,D.className),ownerState:j,style:f({},F,D.style)}));let ot=0;const te=d.Children.map(B,o=>{if(!d.isValidElement(o))return null;const r=o.props.value===void 0?ot:o.props.value;Mt.set(r,ot);const c=r===_;return ot+=1,d.cloneElement(o,f({fullWidth:R==="fullWidth",indicator:c&&!gt&&Wt,selected:c,selectionFollowsFocus:st,onChange:T,textColor:J,value:r},ot===1&&_===!1&&!o.props.tabIndex?{tabIndex:0}:{}))}),ee=o=>{const r=H.current,c=se(r).activeElement;if(c.getAttribute("role")!=="tab")return;let h=g==="horizontal"?"ArrowLeft":"ArrowUp",S=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&n&&(h="ArrowRight",S="ArrowLeft"),o.key){case h:o.preventDefault(),lt(r,c,kt);break;case S:o.preventDefault(),lt(r,c,Pt);break;case"Home":o.preventDefault(),lt(r,null,Pt);break;case"End":o.preventDefault(),lt(r,null,kt);break}},dt=Qt();return b.jsxs(Ie,f({className:N(W.root,y),ownerState:j,ref:l,as:m},Xt,{children:[dt.scrollButtonStart,dt.scrollbarSizeListener,b.jsxs(Ee,{className:W.scroller,ownerState:j,style:{overflow:Tt.overflow,[C?`margin${n?"Left":"Right"}`:"marginBottom"]:at?void 0:-Tt.scrollbarWidth},ref:z,children:[b.jsx(Re,{"aria-label":u,"aria-labelledby":v,"aria-orientation":g==="vertical"?"vertical":null,className:W.flexContainer,ownerState:j,onKeyDown:ee,ref:H,role:"tablist",children:te}),gt&&Wt]}),dt.scrollButtonEnd]}))}),Lt="index",U={tabs:`${Lt}-tabs`,tab:`${Lt}-tab`},Pe=ae(xt)(({theme:t})=>({[`& .${U.tabs}`]:{},[`& .${U.tab}`]:{fontSize:"0.875rem",[t.breakpoints.up("md")]:{fontSize:"1rem"}}}));function ke({tabs:t,current:e,onChange:l,iconPosition:a,...s}){return b.jsx(xt,{scrollButtons:"auto",value:e,onChange:(n,u)=>l(u),...s,variant:"scrollable",sx:{minHeight:"auto",".MuiTabs-scrollButtons.Mui-disabled":{opacity:.3,cursor:"not-allowed",pointerEvents:"auto"},".MuiTabs-scroller":{borderRadius:"100vw"},".MuiTabs-flexContainer":{borderRadius:"100vw",backgroundColor:"grey.100",padding:.5,display:"inline-flex",columnGap:.25,maxWidth:"100%",overflowX:"auto"},".MuiTab-root":{borderRadius:"100vw",border:"1px solid transparent",minHeight:"auto",lineHeight:1,py:1,color:"text.secondary",fontSize:"13px",fontWeight:"normal",textTransform:"capitalize",transition:"background-color 0.2s ease","&.Mui-selected, &:hover":{backgroundColor:"action.selected",borderColor:"grey.100",color:"grey.A700"}},".MuiTabs-indicator":{display:"none"},...s.sx},children:t.map(n=>b.jsx(St,{className:U.tab,value:n.value,label:n.label,icon:n.icon,iconPosition:a},n.value))})}function Ne({tabs:t,current:e,onChange:l,iconPosition:a,...s}){return b.jsx(xt,{scrollButtons:"auto",value:e,onChange:(n,u)=>l(u),...s,variant:"scrollable",sx:{minHeight:"auto",".MuiTabs-scrollButtons.Mui-disabled":{opacity:.3,cursor:"not-allowed",pointerEvents:"auto"},".MuiTabs-scroller":s.orientation!=="vertical"?{"&::after":{content:'""',display:"block",position:"sticky",left:0,zIndex:-1,width:"100%",height:"1px",backgroundColor:"grey.300"}}:{},".MuiTabs-flexContainer":{display:"inline-flex",columnGap:2.5,px:0,pb:.5},".MuiTab-root":{border:"1px solid transparent",minHeight:"auto",lineHeight:1,py:1,px:0,color:"text.secondary",fontSize:"14px",fontWeight:500,textTransform:"capitalize",minWidth:"auto","&.Mui-selected, &:hover":{color:"primary.main"}},".MuiTabs-indicator":{height:"1px",backgroundColor:"primary.main"},...s.sx},children:t.map(n=>b.jsx(St,{className:U.tab,value:n.value,label:n.label,icon:n.icon,iconPosition:a},n.value))})}function $e({tabs:t,current:e,onChange:l,variant:a,iconPosition:s,...n}){return a==="card"?b.jsx(ke,{...n,tabs:t,current:e,onChange:l,iconPosition:s}):a==="line"?b.jsx(Ne,{...n,tabs:t,current:e,onChange:l,iconPosition:s}):b.jsx(Pe,{scrollButtons:"auto",variant:"scrollable",value:e,onChange:(u,v)=>l(v),indicatorColor:"primary",...n,className:[U.tabs,n.className||""].join(" "),children:t.map(u=>b.jsx(St,{className:U.tab,value:u.value,label:u.label,icon:u.icon,iconPosition:s},u.value))})}export{$e as T,xt as a,St as b,Ot as d,ie as g,pt as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{dq as E,j as n,N as a,aQ as _,aR as w,am as f,du as z,m as C}from"./index-
|
|
1
|
+
import{dq as E,j as n,N as a,aQ as _,aR as w,am as f,du as z,m as C}from"./index-B8IA5mbU.js";function o({icon:t,title:e="",description:i="",extra:v,...R}){return n.jsxs(I,{...R,children:[t,typeof e=="string"?n.jsx(a,{mt:3,fontSize:22,fontWeight:400,color:"#47494E",textAlign:"center",children:e}):e,typeof i=="string"?n.jsx(a,{mt:1,fontSize:14,color:"#7F828B",textAlign:"center",children:i}):i,n.jsx(a,{mt:3,children:v})]})}const I=E("div")`
|
|
2
2
|
box-sizing: border-box;
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c6 as c,r as _,cv as f,ic as S,cU as r}from"./index-B8IA5mbU.js";var v=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{v as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as k,j as o,C,aB as W,cW as b,z as U,m as _,cM as D,r,a$ as E,h as d,x,ao as P,ag as R,v as O,aA as $,w as A,F as K,bA as M,n as z}from"./index-
|
|
1
|
+
import{u as k,j as o,C,aB as W,cW as b,z as U,m as _,cM as D,r,a$ as E,h as d,x,ao as P,ag as R,v as O,aA as $,w as A,F as K,bA as M,n as z}from"./index-B8IA5mbU.js";import{I as B}from"./invitation-qmFlHZV_.js";import"./index-D6ARqm6f.js";import"./index-BJQjXoNM.js";import"./emotion-react.browser.esm-CSjORkdU.js";import"./index-4aFZazff.js";import"./sdk-DtMj7H7_.js";import"./wrap-locale-rE7v3anU.js";function H(p){const{api:i,session:f}=W(),{info:s}=k(),c=b(),v=U(),{t:l,locale:m}=_(),{encryptKey:N,decrypt:y}=D(),[L,g]=r.useState(!1),h=r.useMemo(()=>new URLSearchParams(c.search).get("inviteId"),[c]),a=E(async()=>{if(!h)return null;let e;const{data:n}=await i.get("/api/invitation",{params:{inviteId:h}}),t=!!d(s,"ownerNft.did")&&n.role.name==="owner";if(t){const u=new URL(window.location.href);u.pathname=x(P(),"/api/did/invite/token"),u.searchParams.set("_ek_",N),u.searchParams.set("inviteId",h);const{data:j}=await i.get(u.href);e=j}return{invitation:n,nextWorkflow:e,needReceiveNFT:t}}),S=r.useCallback(()=>{g(!0)},[]),I=r.useCallback(()=>{if(a.error)throw a.error;return a.value.invitation},[a]),w=r.useCallback(async e=>{e&&(Object.prototype.hasOwnProperty.call(e,"encrypted")&&!e.encrypted?R(e.sessionToken):R(y(e.sessionToken)));const n=new URLSearchParams(c.search);n.delete("inviteId");const t=n.toString();await f.refresh(),v(`/${t&&`?${t}`}`,{replace:!0})},[c,v,f]);if(a.loading)return o.jsx(C,{});const F=()=>{const e=new URL(window.location.href);e.pathname=x(P(),"/api/did/invite/status"),e.searchParams.set("_t_",a.value.nextWorkflow.token),e.searchParams.set("locale",m);const n=setInterval(async()=>{const{data:t}=await i.get(e.href);t.status==="succeed"&&(clearInterval(n),f.updateConnectedInfo(t),w(t))},2e3)},T=()=>{g(!1)};return o.jsxs(V,{className:"page-invite",children:[d(a,"value.needReceiveNFT")&&o.jsx(O,{action:"login",popup:!0,className:"connect",open:L,locale:m,baseUrl:s.launcher.url,checkFn:$.create({baseURL:s.launcher.url}).get,onSuccess:F,onClose:T,checkTimeout:5*60*1e3,webWalletUrl:A(s),extraParams:{nw:d(a,"value.nextWorkflow.url")},messages:{title:l("invite.transferNFTDialog.title",{name:s.name}),scan:l("invite.transferNFTDialog.scan"),confirm:l("invite.transferNFTDialog.confirm"),success:l("invite.transferNFTDialog.success")},prefix:`${K.WELLKNOWN_SERVICE_PATH_PREFIX}/api/did`}),o.jsx(B,{...p,getDataFn:I,createPassportSvg:e=>M(e,s),checkFn:i.get,onLoginSuccess:w,passportColor:"default",onReceive:d(a,"value.needReceiveNFT")?S:null})]})}const V=z.div`
|
|
2
2
|
width: 100vw;
|
|
3
3
|
height: 100%;
|
|
4
4
|
min-height: 100vh;
|