@abtnode/webapp 1.16.47-beta-20250729-133234-77359596 → 1.16.47-beta-20250731-014139-e860268f
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-BtMrgFCS.js → AdapterDayjs-BiAcanOe.js} +5 -5
- package/dist/assets/{Add-D_yVrBZ2.js → Add-CMaOaJcy.js} +1 -1
- package/dist/assets/ArrowDropDown-BidZ6YZa.js +1 -0
- package/dist/assets/{Autocomplete-DFB-zfAj.js → Autocomplete-Jvr3OBqO.js} +1 -1
- package/dist/assets/{Breadcrumbs-Bn8z2ZUX.js → Breadcrumbs-CWrPLIEE.js} +1 -1
- package/dist/assets/{ButtonGroup-DEvYFpA9.js → ButtonGroup-BHDJ_xHw.js} +1 -1
- package/dist/assets/{CSSTransition-sQz5ESLI.js → CSSTransition-BKoPfTin.js} +1 -1
- package/dist/assets/{CallMerge-nqJcCofk.js → CallMerge-B_44wajA.js} +1 -1
- package/dist/assets/{CardContent-DBRqZcUi.js → CardContent-C9FF8zmo.js} +1 -1
- package/dist/assets/{ChevronLeft-4c5hb-O9.js → ChevronLeft-C_5SFpZ3.js} +1 -1
- package/dist/assets/{ChevronRight-gJV_CVk6.js → ChevronRight-D5Dv2KwC.js} +1 -1
- package/dist/assets/{Clear-CseZqtJJ.js → Clear-DUjqNsqY.js} +1 -1
- package/dist/assets/{DeleteOutline-Ce83cykk.js → DeleteOutline-BJkxA9W_.js} +1 -1
- package/dist/assets/{Done-TWYMo-78.js → Done-1e3LsE76.js} +1 -1
- package/dist/assets/{Edit-SaGMHxTB.js → Edit-Brfok_V9.js} +1 -1
- package/dist/assets/{ErrorOutline-Cpk6THeg.js → ErrorOutline-DU8Lm-me.js} +1 -1
- package/dist/assets/{FilterList-BAa4N29F.js → FilterList-DdUKcAm_.js} +1 -1
- package/dist/assets/{Google-oyxfoTny.js → Google-MHF3yZux.js} +1 -1
- package/dist/assets/{HelpOutline-CwK6RnYZ.js → HelpOutline-r64pe9r_.js} +1 -1
- package/dist/assets/{Launch-BGA2e5Nh.js → Launch-BSO75Y-o.js} +1 -1
- package/dist/assets/{Link-BuDft3kj.js → Link-DxZkbVyA.js} +1 -1
- package/dist/assets/{ListItemButton-Bc8Ct64X.js → ListItemButton-CWYI6B1i.js} +1 -1
- package/dist/assets/{ListSubheader-Dx1TAi_z.js → ListSubheader-B5z3JXVs.js} +1 -1
- package/dist/assets/{LoadingButton-_O3gAanO.js → LoadingButton-BvBtyajW.js} +1 -1
- package/dist/assets/{MoreVert-CPqEfvtL.js → MoreVert-B3-V93zF.js} +1 -1
- package/dist/assets/{OpenInNew-B8F3vFrA.js → OpenInNew-2p7Osi_B.js} +1 -1
- package/dist/assets/{Refresh-BGBC8bFM.js → Refresh-BwUIw44i.js} +1 -1
- package/dist/assets/{Search-B-mOt1mV.js → Search-CVsnDnpP.js} +1 -1
- package/dist/assets/{Slider-DtMbThDZ.js → Slider-BUlXyua5.js} +1 -1
- package/dist/assets/{Stepper-D3IZ8VnG.js → Stepper-Yd1ce1vv.js} +1 -1
- package/dist/assets/{Switch-BXS-cMbK.js → Switch-C1fxxz5n.js} +1 -1
- package/dist/assets/{TableSearch-Ba0268Ym.js → TableSearch-CKX4rVuU.js} +2 -2
- package/dist/assets/{ToggleButtonGroup-wz_HOnUh.js → ToggleButtonGroup-DrT1SlJe.js} +1 -1
- package/dist/assets/{Verified-BZYKWFMj.js → Verified-DYk2lw3M.js} +1 -1
- package/dist/assets/{VerifiedUser-C7uawhTO.js → VerifiedUser-NPP4tmwS.js} +1 -1
- package/dist/assets/{ViewList-Dnwh79y2.js → ViewList-Dxw4_fs_.js} +1 -1
- package/dist/assets/{_createAggregator-C-igeddN.js → _createAggregator-BgffVIEW.js} +1 -1
- package/dist/assets/{actions-BasLLFLB.js → actions-BWsi7i72.js} +2 -2
- package/dist/assets/{actions-DCyuilI2.js → actions-G3fsUkti.js} +1 -1
- package/dist/assets/{agreement-DZDzRKHa.js → agreement-DQuDFy25.js} +1 -1
- package/dist/assets/api-BJGpnzKK.js +1 -0
- package/dist/assets/{appearance-B9fu42ad.js → appearance-Se_lMnLq.js} +1 -1
- package/dist/assets/{ar-7eC8LKj2.js → ar-DKohTs5n.js} +1 -1
- package/dist/assets/{audit-logs-D8ZHDIr5.js → audit-logs-CqQ2o-hd.js} +2 -2
- package/dist/assets/{base-chart-CZ5IfPx1.js → base-chart-_QOGjOWD.js} +1 -1
- package/dist/assets/{blocklet-DTKRGXY2.js → blocklet-BWShyefZ.js} +1 -1
- package/dist/assets/{chain-D_LNFrKA.js → chain-4QRvY1Fq.js} +2 -2
- package/dist/assets/click-to-copy-BgnS-qFa.js +1 -0
- package/dist/assets/client-a5hg5ILL.js +1 -0
- package/dist/assets/cloneDeep-DUxbCdHx.js +1 -0
- package/dist/assets/{collapse-D8BjMRV-.js → collapse-DhWx6Fiz.js} +1 -1
- package/dist/assets/{config-navigation-HsCZP_KM.js → config-navigation-CsJNd9mk.js} +3 -3
- package/dist/assets/{connect-to-B93KdpBp.js → connect-to-BJU3I-tO.js} +1 -1
- package/dist/assets/{cssMode-BLx8QOT-.js → cssMode-BfuAy7Af.js} +1 -1
- package/dist/assets/{de-DgwOa_mf.js → de-CYm7FmiN.js} +1 -1
- package/dist/assets/{delete-confirm-DOAuBeZW.js → delete-confirm-DRlMHX1Z.js} +1 -1
- package/dist/assets/{depsEqual-KodVUXvV.js → depsEqual-D0AotRxG.js} +1 -1
- package/dist/assets/detail-D5mwafWs.js +58 -0
- package/dist/assets/{domains-Ba91DmOX.js → domains-Uw1IUOhz.js} +2 -2
- package/dist/assets/{download-BADzbUsd.js → download-BITZfYyH.js} +1 -1
- package/dist/assets/emotion-cache.browser.esm-BDnrC0c-.js +1 -0
- package/dist/assets/engine-3IdUdjkH.js +1 -0
- package/dist/assets/{es-B_gBSKp3.js → es-5zob_8Of.js} +1 -1
- package/dist/assets/{fr-Bm0AhLrO.js → fr-GNzEzJIo.js} +1 -1
- package/dist/assets/{freemarker2-BTTF114U.js → freemarker2-RPBEtbdT.js} +1 -1
- package/dist/assets/{get-safe-url-Ye2EWwkH.js → get-safe-url-Dqogbkdq.js} +1 -1
- package/dist/assets/getValidReactChildren-SkwQHrW1.js +1 -0
- package/dist/assets/{graphqlMode-CLyuuGgs.js → graphqlMode-CaadduEK.js} +2 -2
- package/dist/assets/{handlebars-D1wnOJww.js → handlebars-D8A3QMQA.js} +1 -1
- package/dist/assets/{hi-DO31L4at.js → hi-BMaS53lF.js} +1 -1
- package/dist/assets/{html-CAWHXH95.js → html-mPnmQbuN.js} +1 -1
- package/dist/assets/html-title-CacFoTyg.js +1 -0
- package/dist/assets/{htmlMode-BHaJrt3h.js → htmlMode-DI5mRJJV.js} +1 -1
- package/dist/assets/{id-BYCjnoK8.js → id-CbyxMpli.js} +1 -1
- package/dist/assets/{iframe-CUpb7ICB.js → iframe-Czk-UT3-.js} +1 -1
- package/dist/assets/{index-a7RH9Stt.js → index-9W_t0LqL.js} +1 -1
- package/dist/assets/{index-DmpIRzjQ.js → index-B-8U8lYj.js} +1 -1
- package/dist/assets/{index-Cft3_tM7.js → index-B1iMTf-1.js} +1 -1
- package/dist/assets/{index-Bmy8KBkN.js → index-B9eEN6Ex.js} +1 -1
- package/dist/assets/{index-Dvrc3qEy.js → index-BCt6EuqV.js} +1 -1
- package/dist/assets/{index-Dm9SjbUQ.js → index-BOGGfGZP.js} +1 -1
- package/dist/assets/{index-CkvSX6B-.js → index-BbLteX_9.js} +19 -19
- package/dist/assets/index-BeXjeW_D.js +79 -0
- package/dist/assets/{index-CU1U0Fbj.js → index-BiSZbdUR.js} +1 -1
- package/dist/assets/{index-CgI1wgSP.js → index-Bk2swyn_.js} +23 -23
- package/dist/assets/{index-DiZ8ImCf.js → index-BwAWqOYq.js} +1 -1
- package/dist/assets/index-C0IoSN2J.js +45 -0
- package/dist/assets/{index-CkqfZU31.js → index-C2SQKbgp.js} +1 -1
- package/dist/assets/index-C7H9Stfd.js +316 -0
- package/dist/assets/{index-BAmzwezR.js → index-C7J9Tf7N.js} +1 -1
- package/dist/assets/{index-jJRuEvFt.js → index-CC-3XMOt.js} +1 -1
- package/dist/assets/{index-BdnfHuZv.js → index-CGfr_Xf0.js} +1 -1
- package/dist/assets/{index-DMhD7EeU.js → index-CLTTHohk.js} +1 -1
- package/dist/assets/{index-BRb176tk.js → index-COsQ2pDX.js} +1 -1
- package/dist/assets/{index-BPfwFPum.js → index-CSsjxwWr.js} +1 -1
- package/dist/assets/{index-Dz2nYC7g.js → index-CWfqG7JG.js} +3 -3
- package/dist/assets/{index-BXRotQM-.js → index-CZj-IeN0.js} +1 -1
- package/dist/assets/{index-CFpyMQ_d.js → index-CagsSpuh.js} +9 -9
- package/dist/assets/{index-CX6gDshF.js → index-CjzEBnHB.js} +8 -8
- package/dist/assets/index-CmGv3elb.js +120 -0
- package/dist/assets/{index-BApymdtV.js → index-CmwksVS0.js} +1 -1
- package/dist/assets/{index-Nhy6IaeB.js → index-CqSRbifn.js} +1 -1
- package/dist/assets/{index-NS5A6eLA.js → index-CsVDrMMd.js} +2 -2
- package/dist/assets/{index-CUwyrdOY.js → index-CwxkXQDN.js} +1 -1
- package/dist/assets/{index-ijZD2Gee.js → index-Cyh9wrDu.js} +10 -10
- package/dist/assets/{index-zs5l3prb.js → index-Cz0waa_4.js} +1 -1
- package/dist/assets/{index-BqithI6e.js → index-D-Icpyc2.js} +1 -1
- package/dist/assets/{index-Dv62Si5m.js → index-D4Q12FU6.js} +1 -1
- package/dist/assets/{index-YPVihXU7.js → index-DFaykc-l.js} +1 -1
- package/dist/assets/{index-BfXbyXkW.js → index-DGqI12Zh.js} +1 -1
- package/dist/assets/{index-BLpgHHR-.js → index-DSZpPG9s.js} +3 -3
- package/dist/assets/{index-BUVEfL-H.js → index-D_ZRDcUb.js} +1 -1
- package/dist/assets/index-DcxGCVz2.js +1 -0
- package/dist/assets/{index-DNy1-otX.js → index-Df8aFWjk.js} +9 -9
- package/dist/assets/{index-Bo_5PZBY.js → index-DuWuA4Qr.js} +2 -2
- package/dist/assets/{index-vaPTgN2r.js → index-Pb0zzrzv.js} +20 -20
- package/dist/assets/index-WWc-YnJr.js +113 -0
- package/dist/assets/{index-D18Kk1fT.js → index-dQzdi1Hq.js} +1 -1
- package/dist/assets/{index-Bn2tsvZc.js → index-jUWkwezj.js} +4 -4
- package/dist/assets/{index-Dl_Ia9GM.js → index-n35bDjPH.js} +1 -1
- package/dist/assets/{index-CJc0rh4y.js → index-sraicR1d.js} +1 -1
- package/dist/assets/{index.esm-CSlUhA6z.js → index.esm-CXCRSK_f.js} +1 -1
- package/dist/assets/{install-from-url-DZxo6ZYF.js → install-from-url-Bpa-muAm.js} +1 -1
- package/dist/assets/{invitation-DuMro-DT.js → invitation-hZO0WzEZ.js} +1 -1
- package/dist/assets/{is-path-prefix-equal-BbciGE2u.js → is-path-prefix-equal-CpCr5Pp2.js} +1 -1
- package/dist/assets/{item-Bh3b7oE0.js → item-Ds6r8B85.js} +6 -6
- package/dist/assets/{ja-Ck2EVKeO.js → ja-BPCCKkW4.js} +1 -1
- package/dist/assets/{javascript-Bfi1s6Y8.js → javascript-CGPbA1CY.js} +1 -1
- package/dist/assets/{jsonMode-lekI5_I4.js → jsonMode-Dlg8sdnH.js} +1 -1
- package/dist/assets/{ko-Nk_6p6Jl.js → ko-Wbe93sio.js} +1 -1
- package/dist/assets/{liquid-DZv4bT5H.js → liquid-D13SNYj1.js} +1 -1
- package/dist/assets/{list-header-B5ciTDV9.js → list-header-DZTbN58s.js} +1 -1
- package/dist/assets/{log-H6ZEmpY1.js → log-C--AbUmH.js} +1 -1
- package/dist/assets/{lottie-react.esm-TmjsMLZQ.js → lottie-react.esm-bHdqVYkV.js} +1 -1
- package/dist/assets/{mdx-D7KGnBOI.js → mdx-geJ5pn3l.js} +1 -1
- package/dist/assets/{memory-BJvUF24N.js → memory-DLJFi013.js} +1 -1
- package/dist/assets/{metric-DqHLPUdD.js → metric-nF2Xx_cP.js} +1 -1
- package/dist/assets/omit-CMtjAJiD.js +1 -0
- package/dist/assets/{overview-N_ciTHKs.js → overview-DbcbGc2C.js} +1 -1
- package/dist/assets/{permission-xI7TPD_-.js → permission-DG9uH24n.js} +1 -1
- package/dist/assets/{preference-COzP_QI_.js → preference-DQfFXuWW.js} +3 -3
- package/dist/assets/{pt-C-JzkWqR.js → pt-C1fHGXQk.js} +1 -1
- package/dist/assets/{python-CJm_dsIE.js → python-Cdls_5iy.js} +1 -1
- package/dist/assets/{raf-schd.esm-s2KsxjyR.js → raf-schd.esm-BfNfEe8D.js} +1 -1
- package/dist/assets/{razor-BWHFGLFh.js → razor-DxOaQqxx.js} +1 -1
- package/dist/assets/{rotate-session-key-CowHvrJJ.js → rotate-session-key-BXcd-5Zn.js} +1 -1
- package/dist/assets/{ru-DR6is0tr.js → ru-DJ3aNml8.js} +1 -1
- package/dist/assets/{runtime-DgZNKPs1.js → runtime-CzuKUbuj.js} +1 -1
- package/dist/assets/schema-CgZR3vFp.js +1 -0
- package/dist/assets/sdk-CJb0Z10-.js +1 -0
- package/dist/assets/service-zTgtva4o.js +1 -0
- package/dist/assets/{shorten-label-NmOkB2cg.js → shorten-label-BCEJK9kd.js} +1 -1
- package/dist/assets/{simple-select-DVpAUW9K.js → simple-select-DGcxx-W-.js} +1 -1
- package/dist/assets/{spaces-CZFNtfbq.js → spaces-CUI-UEB-.js} +1 -1
- package/dist/assets/{status-CFt9_6p0.js → status-Bi_Pou8g.js} +1 -1
- package/dist/assets/{status-B-Brq_RM.js → status-mS0PFNHr.js} +1 -1
- package/dist/assets/{switch-control-B8ORvjoD.js → switch-control-BBKsCU2Y.js} +1 -1
- package/dist/assets/{table-icons-BKf29GdU.js → table-icons-hZGjJ2eg.js} +52 -68
- package/dist/assets/{team-Dk-2oEpZ.js → team-1bg7ZL8j.js} +1 -1
- package/dist/assets/{th-Cn3755Vi.js → th-C22KCFdo.js} +1 -1
- package/dist/assets/{toLower-CD8Z1e9D.js → toLower-p7cMPP8n.js} +1 -1
- package/dist/assets/toUpper-g96Av6xB.js +1 -0
- package/dist/assets/{traffic-DR9L6nFW.js → traffic-B8RUG_pS.js} +1 -1
- package/dist/assets/{tsMode-OD8H16VT.js → tsMode-B0Ss7AK7.js} +1 -1
- package/dist/assets/{typescript-CPkFJ71d.js → typescript-Cq9RZqPR.js} +1 -1
- package/dist/assets/{url-evaluation-c4Fe77Jg.js → url-evaluation-BMLhywvu.js} +1 -1
- package/dist/assets/{url-join-DA4AkRL3.js → url-join-CBh7FZtG.js} +1 -1
- package/dist/assets/{use-mobile-MMitRVbD.js → use-mobile-BHeriyen.js} +1 -1
- package/dist/assets/{use-mobile-s6Z2HXGw.js → use-mobile-Dn3IunVN.js} +1 -1
- package/dist/assets/{useAsync-BLbCNK6N.js → useAsync-ByzD9-iZ.js} +1 -1
- package/dist/assets/{useAsyncRetry-DruySzFm.js → useAsyncRetry-CrZGrFzH.js} +1 -1
- package/dist/assets/{useLocalStorage-DBFHYH4w.js → useLocalStorage-BHL7RS8q.js} +1 -1
- package/dist/assets/{useThemeProps-CHzERYQJ.js → useThemeProps-DooTQWd6.js} +1 -1
- package/dist/assets/{util-DcV9UPg-.js → util-BErsOHdh.js} +1 -1
- package/dist/assets/{vi-7MIaoDt9.js → vi-D_AWh4Q3.js} +1 -1
- package/dist/assets/{wait-container-C3t0_9pD.js → wait-container-DfL-msy6.js} +1 -1
- package/dist/assets/{without-wallet-C-NBCmOm.js → without-wallet-BwvrV6Xc.js} +1 -1
- package/dist/assets/wrap-locale-DdILYRop.js +1 -0
- package/dist/assets/{xml-ZnZT4dmm.js → xml-Cr_Y_Yft.js} +1 -1
- package/dist/assets/{yaml-COdysg5-.js → yaml-RBxoeLGe.js} +1 -1
- package/dist/assets/{zh-DswrR4Lx.js → zh-ZjW3xV_P.js} +1 -1
- package/dist/assets/{zh-tw-De_IfliP.js → zh-tw-BuqwZI-0.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +1 -1
- package/dist/assets/ArrowDropDown-xY2s7Ihq.js +0 -1
- package/dist/assets/api-Clj72YcZ.js +0 -1
- package/dist/assets/click-to-copy-B9VHrkLa.js +0 -1
- package/dist/assets/client-CKiDm4Sh.js +0 -1
- package/dist/assets/cloneDeep-ChKH-mUk.js +0 -1
- package/dist/assets/detail-DNxn6vzE.js +0 -58
- package/dist/assets/emotion-cache.browser.esm-LZWLgccN.js +0 -1
- package/dist/assets/engine-CnD_uEkh.js +0 -1
- package/dist/assets/getValidReactChildren-CcAo1bEa.js +0 -1
- package/dist/assets/index-BJi0KLKD.js +0 -113
- package/dist/assets/index-CUJnu-Cz.js +0 -316
- package/dist/assets/index-Ch95NoWO.js +0 -45
- package/dist/assets/index-D8Whs-QW.js +0 -120
- package/dist/assets/index-DtIGnfqA.js +0 -80
- package/dist/assets/index-SNFmscVU.js +0 -1
- package/dist/assets/index-rqx96NXG.js +0 -1
- package/dist/assets/omit-A7YJlIhK.js +0 -1
- package/dist/assets/schema-BCRuQHJw.js +0 -1
- package/dist/assets/sdk-Bv8uTx0n.js +0 -1
- package/dist/assets/service-C3ESAoY1.js +0 -1
- package/dist/assets/toUpper-B-KX3CuD.js +0 -1
- package/dist/assets/wrap-locale-DH63zt6h.js +0 -1
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./overview-N_ciTHKs.js","./index-CX6gDshF.js","./index-DGkT7afN.css","./HelpOutline-CwK6RnYZ.js","./status-CFt9_6p0.js","./index-SNFmscVU.js","./ErrorOutline-Cpk6THeg.js","./omit-A7YJlIhK.js","./index-BojVbZw0.js","./index-DmpIRzjQ.js","./blocklet-DTKRGXY2.js","./team-Dk-2oEpZ.js","./url-evaluation-c4Fe77Jg.js","./metric-DqHLPUdD.js","./spaces-CZFNtfbq.js","./api-Clj72YcZ.js","./domains-Ba91DmOX.js","./index-D18Kk1fT.js","./useAsync-BLbCNK6N.js","./permission-xI7TPD_-.js","./actions-DCyuilI2.js","./delete-confirm-DOAuBeZW.js","./click-to-copy-B9VHrkLa.js","./status-B-Brq_RM.js","./VerifiedUser-C7uawhTO.js","./CardContent-DBRqZcUi.js","./Add-D_yVrBZ2.js","./CallMerge-nqJcCofk.js","./toLower-CD8Z1e9D.js","./use-mobile-s6Z2HXGw.js","./util-DcV9UPg-.js","./is-path-prefix-equal-BbciGE2u.js","./engine-CnD_uEkh.js","./OpenInNew-B8F3vFrA.js","./LoadingButton-_O3gAanO.js","./index-DNy1-otX.js","./preference-COzP_QI_.js","./index-Bmy8KBkN.js","./index-zs5l3prb.js","./iframe-CUpb7ICB.js","./ChevronRight-gJV_CVk6.js","./index-rqx96NXG.js","./Done-TWYMo-78.js","./collapse-D8BjMRV-.js","./chain-D_LNFrKA.js","./ArrowDropDown-xY2s7Ihq.js","./ButtonGroup-DEvYFpA9.js","./getValidReactChildren-CcAo1bEa.js","./Autocomplete-DFB-zfAj.js","./ListSubheader-Dx1TAi_z.js","./index-Bo_5PZBY.js","./index.esm-CSlUhA6z.js","./Switch-BXS-cMbK.js","./rotate-session-key-CowHvrJJ.js","./index-Nhy6IaeB.js","./redux-DfszZyTl.js","./typeof-QjJsDpFa.js","./switch-control-B8ORvjoD.js","./Slider-DtMbThDZ.js","./visuallyHidden-Dan1xhjv.js","./index-DMhD7EeU.js","./FilterList-BAa4N29F.js","./CSSTransition-sQz5ESLI.js","./emotion-cache.browser.esm-LZWLgccN.js","./depsEqual-KodVUXvV.js","./TableSearch-Ba0268Ym.js","./Search-B-mOt1mV.js","./Clear-CseZqtJJ.js","./MoreVert-CPqEfvtL.js","./index-CkqfZU31.js","./index-BPfwFPum.js","./index-ZgkIHsf0.css","./use-mobile-MMitRVbD.js","./simple-select-DVpAUW9K.js","./actions-BasLLFLB.js","./useLocalStorage-DBFHYH4w.js","./get-safe-url-Ye2EWwkH.js","./appearance-B9fu42ad.js","./config-navigation-HsCZP_KM.js","./cloneDeep-ChKH-mUk.js","./_createAggregator-C-igeddN.js","./raf-schd.esm-s2KsxjyR.js","./ListItemButton-Bc8Ct64X.js","./client-CKiDm4Sh.js","./index-BJi0KLKD.js","./shorten-label-NmOkB2cg.js","./Refresh-BGBC8bFM.js","./traffic-DR9L6nFW.js","./ChevronLeft-4c5hb-O9.js","./index-DBii9-f-.js","./base-chart-CZ5IfPx1.js","./index-BfXbyXkW.js","./AdapterDayjs-BtMrgFCS.js","./useThemeProps-CHzERYQJ.js","./audit-logs-D8ZHDIr5.js","./index-BdnfHuZv.js","./decode-DPztD6kB.js","./index-gnjjKJuC.css","./index-ijZD2Gee.js","./index-CU1U0Fbj.js","./Google-oyxfoTny.js","./list-header-B5ciTDV9.js","./ToggleButtonGroup-wz_HOnUh.js","./index-vaPTgN2r.js","./ViewList-Dnwh79y2.js","./Verified-BZYKWFMj.js","./DeleteOutline-Ce83cykk.js","./index-Dvrc3qEy.js","./sdk-Bv8uTx0n.js","./service-C3ESAoY1.js","./table-icons-BKf29GdU.js","./Edit-SaGMHxTB.js","./index-BLpgHHR-.js","./Link-BuDft3kj.js","./item-Bh3b7oE0.js","./Launch-BGA2e5Nh.js","./item-G0iZE90Q.css","./index-DiZ8ImCf.js","./url-join-DA4AkRL3.js","./connect-to-B93KdpBp.js","./index-DRYJ0xIl.js","./agreement-DZDzRKHa.js","./install-from-url-DZxo6ZYF.js","./without-wallet-C-NBCmOm.js","./Stepper-D3IZ8VnG.js","./toUpper-B-KX3CuD.js","./log-H6ZEmpY1.js","./download-BADzbUsd.js","./download-1sZ_L4eJ.css","./runtime-DgZNKPs1.js","./memory-BJvUF24N.js","./index-a7RH9Stt.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{m as $e,n as Ue,bn as Et,r as y,E as N,j as d,X as He,N as Y,v as qe,w as _t,J as T,bx as Ct,H as W,Y as Qe,bm as Ge,A as Tt,u as jt,by as Pt,bz as At,bA as je,bB as Dt,bC as Ot,Z as Pe,C as Ae,K as Lt,bD as Bt,T as ae,M as Mt,bE as k,s as Rt}from"./index-CX6gDshF.js";import{T as Nt}from"./index-rqx96NXG.js";import{B as Ft}from"./status-B-Brq_RM.js";import{D as Vt,B as zt}from"./actions-BasLLFLB.js";import{u as $t}from"./blocklet-DTKRGXY2.js";import{p as Ut}from"./index-BqithI6e.js";import{B as Ht,a as qt,T as Qt}from"./team-Dk-2oEpZ.js";import{P as Gt}from"./permission-xI7TPD_-.js";import{B as Kt}from"./Breadcrumbs-Bn8z2ZUX.js";import"./url-evaluation-c4Fe77Jg.js";import"./useLocalStorage-DBFHYH4w.js";import"./MoreVert-CPqEfvtL.js";import"./get-safe-url-Ye2EWwkH.js";import"./ButtonGroup-DEvYFpA9.js";import"./getValidReactChildren-CcAo1bEa.js";/**
|
|
3
|
-
* (c) Iconify
|
|
4
|
-
*
|
|
5
|
-
* For the full copyright and license information, please view the license.txt or license.gpl.txt
|
|
6
|
-
* files at https://github.com/iconify/iconify
|
|
7
|
-
*
|
|
8
|
-
* Licensed under MIT.
|
|
9
|
-
*
|
|
10
|
-
* @license MIT
|
|
11
|
-
* @version 3.1.1
|
|
12
|
-
*/const Ke=Object.freeze({left:0,top:0,width:16,height:16}),Z=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),U=Object.freeze({...Ke,...Z}),de=Object.freeze({...U,body:"",hidden:!1});function Wt(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function De(e,t){const n=Wt(e,t);for(const r in de)r in Z?r in e&&!(r in n)&&(n[r]=Z[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function Jt(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function s(i){if(n[i])return o[i]=[];if(!(i in o)){o[i]=null;const c=r[i]&&r[i].parent,l=c&&s(c);l&&(o[i]=[c].concat(l))}return o[i]}return Object.keys(n).concat(Object.keys(r)).forEach(s),o}function Xt(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let s={};function i(c){s=De(r[c]||o[c],s)}return i(t),n.forEach(i),De(e,s)}function Yt(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const r=Jt(e);for(const o in r){const s=r[o];s&&(t(o,Xt(e,o,s)),n.push(o))}return n}const F=/^[a-z0-9]+(-[a-z0-9]+)*$/,B=(e,t,n,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const c=o.pop(),l=o.pop(),a={provider:o.length>0?o[0]:r,prefix:l,name:c};return t&&!J(a)?null:a}const s=o[0],i=s.split("-");if(i.length>1){const c={provider:r,prefix:i.shift(),name:i.join("-")};return t&&!J(c)?null:c}if(n&&r===""){const c={provider:r,prefix:"",name:s};return t&&!J(c,n)?null:c}return null},J=(e,t)=>e?!!((e.provider===""||e.provider.match(F))&&(t&&e.prefix===""||e.prefix.match(F))&&e.name.match(F)):!1,Zt={provider:"",aliases:{},not_found:{},...Ke};function le(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function en(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!le(e,Zt))return null;const n=t.icons;for(const o in n){const s=n[o];if(!o.match(F)||typeof s.body!="string"||!le(s,de))return null}const r=t.aliases||Object.create(null);for(const o in r){const s=r[o],i=s.parent;if(!o.match(F)||typeof i!="string"||!n[i]&&!r[i]||!le(s,de))return null}return t}const ee=Object.create(null);function tn(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function C(e,t){const n=ee[e]||(ee[e]=Object.create(null));return n[t]||(n[t]=tn(e,t))}function Ie(e,t){return en(t)?Yt(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function nn(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function on(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(ee)).forEach(o=>{(typeof o=="string"&&typeof t=="string"?[t]:Object.keys(ee[o]||{})).forEach(i=>{const c=C(o,i);n=n.concat(Object.keys(c.icons).map(l=>(o!==""?"@"+o+":":"")+i+":"+l))})}),n}let ke=!1;function rn(e){return ke}function H(e){const t=typeof e=="string"?B(e,!0,ke):e;if(t){const n=C(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function sn(e,t){const n=B(e,!0,ke);if(!n)return!1;const r=C(n.provider,n.prefix);return nn(r,n.name,t)}function We(e,t){if(typeof e!="object")return!1;typeof t!="string"&&(t=e.provider||"");const n=e.prefix;if(!J({provider:t,prefix:n,name:"a"}))return!1;const r=C(t,n);return!!Ie(r,e)}function cn(e){return!!H(e)}function an(e){const t=H(e);return t?{...U,...t}:null}const Je=Object.freeze({width:null,height:null}),Xe=Object.freeze({...Je,...Z}),ln=/(-?[0-9.]*[0-9]+[0-9.]*)/g,un=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function pe(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(ln);if(r===null||!r.length)return e;const o=[];let s=r.shift(),i=un.test(s);for(;;){if(i){const c=parseFloat(s);isNaN(c)?o.push(s):o.push(Math.ceil(c*t*n)/n)}else o.push(s);if(s=r.shift(),s===void 0)return o.join("");i=!i}}const fn=e=>e==="unset"||e==="undefined"||e==="none";function oe(e,t){const n={...U,...e},r={...Xe,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(g=>{const v=[],_=g.hFlip,O=g.vFlip;let I=g.rotate;_?O?I+=2:(v.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),v.push("scale(-1 1)"),o.top=o.left=0):O&&(v.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),v.push("scale(1 -1)"),o.top=o.left=0);let x;switch(I<0&&(I-=Math.floor(I/4)*4),I=I%4,I){case 1:x=o.height/2+o.top,v.unshift("rotate(90 "+x.toString()+" "+x.toString()+")");break;case 2:v.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:x=o.width/2+o.left,v.unshift("rotate(-90 "+x.toString()+" "+x.toString()+")");break}I%2===1&&(o.left!==o.top&&(x=o.left,o.left=o.top,o.top=x),o.width!==o.height&&(x=o.width,o.width=o.height,o.height=x)),v.length&&(s='<g transform="'+v.join(" ")+'">'+s+"</g>")});const i=r.width,c=r.height,l=o.width,a=o.height;let u,p;i===null?(p=c===null?"1em":c==="auto"?a:c,u=pe(p,l/a)):(u=i==="auto"?l:i,p=c===null?pe(u,a/l):c==="auto"?a:c);const f={},h=(g,v)=>{fn(v)||(f[g]=v.toString())};return h("width",u),h("height",p),f.viewBox=o.left.toString()+" "+o.top.toString()+" "+l.toString()+" "+a.toString(),{attributes:f,body:s}}const dn=/\sid="(\S+)"/g,pn="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let mn=0;function Ye(e,t=pn){const n=[];let r;for(;r=dn.exec(e);)n.push(r[1]);if(!n.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(s=>{const i=typeof t=="function"?t(s):t+(mn++).toString(),c=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+i+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}const A={local:!0,session:!0},Ze={local:new Set,session:new Set};let Ee=!1;function hn(e){Ee=e}const Oe="iconify2",$="iconify",et=$+"-count",Le=$+"-version",tt=36e5,gn=168;function me(e,t){try{return e.getItem(t)}catch{}}function _e(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Be(e,t){try{e.removeItem(t)}catch{}}function he(e,t){return _e(e,et,t.toString())}function ge(e){return parseInt(me(e,et))||0}let G=typeof window>"u"?{}:window;function nt(e){const t=e+"Storage";try{if(G&&G[t]&&typeof G[t].length=="number")return G[t]}catch{}A[e]=!1}function ot(e,t){const n=nt(e);if(!n)return;const r=me(n,Le);if(r!==Oe){if(r){const c=ge(n);for(let l=0;l<c;l++)Be(n,$+l.toString())}_e(n,Le,Oe),he(n,0);return}const o=Math.floor(Date.now()/tt)-gn,s=c=>{const l=$+c.toString(),a=me(n,l);if(typeof a=="string"){try{const u=JSON.parse(a);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>o&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,c))return!0}catch{}Be(n,l)}};let i=ge(n);for(let c=i-1;c>=0;c--)s(c)||(c===i-1?(i--,he(n,i)):Ze[e].add(c))}function rt(){if(!Ee){hn(!0);for(const e in A)ot(e,t=>{const n=t.data,r=t.provider,o=n.prefix,s=C(r,o);if(!Ie(s,n).length)return!1;const i=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function st(e,t){switch(e){case"local":case"session":A[e]=t;break;case"all":for(const n in A)A[n]=t;break}}const be=Object.create(null);function it(e,t){be[e]=t}function ye(e){return be[e]||be[""]}function Ce(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const re=Object.create(null),R=["https://api.simplesvg.com","https://api.unisvg.com"],X=[];for(;R.length>0;)R.length===1||Math.random()>.5?X.push(R.shift()):X.push(R.pop());re[""]=Ce({resources:["https://api.iconify.design"].concat(X)});function ct(e,t){const n=Ce(t);return n===null?!1:(re[e]=n,!0)}function se(e){return re[e]}function bn(){return Object.keys(re)}const yn=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let te=yn();function vn(e){te=e}function xn(){return te}function wn(e,t){const n=se(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(i=>{o=Math.max(o,i.length)});const s=t+".json?icons=";r=n.maxURL-o-n.path.length-s.length}return r}function Sn(e){return e===404}const In=(e,t,n)=>{const r=[],o=wn(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},c=0;return n.forEach((l,a)=>{c+=l.length+1,c>=o&&a>0&&(r.push(i),i={type:s,provider:e,prefix:t,icons:[]},c=l.length),i.icons.push(l)}),r.push(i),r};function kn(e){if(typeof e=="string"){const t=se(e);if(t)return t.path}return"/"}const En=(e,t,n)=>{if(!te){n("abort",424);return}let r=kn(t.provider);switch(t.type){case"icons":{const s=t.prefix,c=t.icons.join(","),l=new URLSearchParams({icons:c});r+=s+".json?"+l.toString();break}case"custom":{const s=t.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let o=503;te(e+r).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{n(Sn(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",o)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",o)})},_n={prepare:In,send:En};function Cn(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,s)=>o.provider!==s.provider?o.provider.localeCompare(s.provider):o.prefix!==s.prefix?o.prefix.localeCompare(s.prefix):o.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const s=o.provider,i=o.prefix,c=o.name,l=n[s]||(n[s]=Object.create(null)),a=l[i]||(l[i]=C(s,i));let u;c in a.icons?u=t.loaded:i===""||a.missing.has(c)?u=t.missing:u=t.pending;const p={provider:s,prefix:i,name:c};u.push(p)}),t}function at(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function Tn(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach(s=>{const i=s.icons,c=i.pending.length;i.pending=i.pending.filter(l=>{if(l.prefix!==o)return!0;const a=l.name;if(e.icons[a])i.loaded.push({provider:r,prefix:o,name:a});else if(e.missing.has(a))i.missing.push({provider:r,prefix:o,name:a});else return n=!0,!0;return!1}),i.pending.length!==c&&(n||at([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let jn=0;function Pn(e,t,n){const r=jn++,o=at.bind(null,n,r);if(!t.pending.length)return o;const s={id:r,icons:t,callback:e,abort:o};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}function An(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const s=typeof o=="string"?B(o,t,n):o;s&&r.push(s)}),r}var Dn={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function On(e,t,n,r){const o=e.resources.length,s=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let m=e.resources.slice(0);for(i=[];m.length>1;){const S=Math.floor(Math.random()*m.length);i.push(m[S]),m=m.slice(0,S).concat(m.slice(S+1))}i=i.concat(m)}else i=e.resources.slice(s).concat(e.resources.slice(0,s));const c=Date.now();let l="pending",a=0,u,p=null,f=[],h=[];typeof r=="function"&&h.push(r);function g(){p&&(clearTimeout(p),p=null)}function v(){l==="pending"&&(l="aborted"),g(),f.forEach(m=>{m.status==="pending"&&(m.status="aborted")}),f=[]}function _(m,S){S&&(h=[]),typeof m=="function"&&h.push(m)}function O(){return{startTime:c,payload:t,status:l,queriesSent:a,queriesPending:f.length,subscribe:_,abort:v}}function I(){l="failed",h.forEach(m=>{m(void 0,u)})}function x(){f.forEach(m=>{m.status==="pending"&&(m.status="aborted")}),f=[]}function w(m,S,P){const b=S!=="success";switch(f=f.filter(E=>E!==m),l){case"pending":break;case"failed":if(b||!e.dataAfterTimeout)return;break;default:return}if(S==="abort"){u=P,I();return}if(b){u=P,f.length||(i.length?M():I());return}if(g(),x(),!e.random){const E=e.resources.indexOf(m.resource);E!==-1&&E!==e.index&&(e.index=E)}l="completed",h.forEach(E=>{E(P)})}function M(){if(l!=="pending")return;g();const m=i.shift();if(m===void 0){if(f.length){p=setTimeout(()=>{g(),l==="pending"&&(x(),I())},e.timeout);return}I();return}const S={status:"pending",resource:m,callback:(P,b)=>{w(S,P,b)}};f.push(S),a++,p=setTimeout(M,e.rotate),n(m,t,S.callback)}return setTimeout(M),O}function lt(e){const t={...Dn,...e};let n=[];function r(){n=n.filter(c=>c().status==="pending")}function o(c,l,a){const u=On(t,c,l,(p,f)=>{r(),a&&a(p,f)});return n.push(u),u}function s(c){return n.find(l=>c(l))||null}return{query:o,find:s,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:r}}function Me(){}const ue=Object.create(null);function Ln(e){if(!ue[e]){const t=se(e);if(!t)return;const n=lt(t),r={config:t,redundancy:n};ue[e]=r}return ue[e]}function ut(e,t,n){let r,o;if(typeof e=="string"){const s=ye(e);if(!s)return n(void 0,424),Me;o=s.send;const i=Ln(e);i&&(r=i.redundancy)}else{const s=Ce(e);if(s){r=lt(s);const i=e.resources?e.resources[0]:"",c=ye(i);c&&(o=c.send)}}return!r||!o?(n(void 0,424),Me):r.query(t,o,n)().abort}function Bn(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in A)ot(r,o=>{const s=o.data;return o.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function Mn(e,t){Ee||rt();function n(r){let o;if(!A[r]||!(o=nt(r)))return;const s=Ze[r];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=ge(o),!he(o,i+1))return;const c={cached:Math.floor(Date.now()/tt),provider:e.provider,data:t};return _e(o,$+i.toString(),JSON.stringify(c))}t.lastModified&&!Bn(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Re(){}function Rn(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Tn(e)}))}function Nn(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let s;if(!o||!(s=ye(n)))return;s.prepare(n,r,o).forEach(c=>{ut(n,c,l=>{if(typeof l!="object")c.icons.forEach(a=>{e.missing.add(a)});else try{const a=Ie(e,l);if(!a.length)return;const u=e.pendingIcons;u&&a.forEach(p=>{u.delete(p)}),Mn(e,l)}catch(a){console.error(a)}Rn(e)})})}))}const Fn=e=>{const n=C(e.provider,e.prefix).pendingIcons;return!!(n&&n.has(e.name))},Te=(e,t)=>{const n=An(e,!0,rn()),r=Cn(n);if(!r.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(r.loaded,r.missing,r.pending,Re)}),()=>{l=!1}}const o=Object.create(null),s=[];let i,c;return r.pending.forEach(l=>{const{provider:a,prefix:u}=l;if(u===c&&a===i)return;i=a,c=u,s.push(C(a,u));const p=o[a]||(o[a]=Object.create(null));p[u]||(p[u]=[])}),r.pending.forEach(l=>{const{provider:a,prefix:u,name:p}=l,f=C(a,u),h=f.pendingIcons||(f.pendingIcons=new Set);h.has(p)||(h.add(p),o[a][u].push(p))}),s.forEach(l=>{const{provider:a,prefix:u}=l;o[a][u].length&&Nn(l,o[a][u])}),t?Pn(t,r,s):Re},Vn=e=>new Promise((t,n)=>{const r=typeof e=="string"?B(e,!0):e;if(!r){n(e);return}Te([r||e],o=>{if(o.length&&r){const s=H(r);if(s){t({...U,...s});return}}n(e)})});function ft(e,t){const n={...e};for(const r in t){const o=t[r],s=typeof o;r in Je?(o===null||o&&(s==="string"||s==="number"))&&(n[r]=o):s===typeof n[r]&&(n[r]=r==="rotate"?o%4:o)}return n}const ie={...Xe,inline:!1},fe="iconify",ve="iconify-inline",j="iconifyData"+Date.now();let D=[];function q(e){for(let t=0;t<D.length;t++){const n=D[t];if((typeof n.node=="function"?n.node():n.node)===e)return n}}function dt(e,t=!1){let n=q(e);return n?(n.temporary&&(n.temporary=t),n):(n={node:e,temporary:t},D.push(n),n)}function zn(){if(document.documentElement)return dt(document.documentElement);D.push({node:()=>document.documentElement})}function $n(e){D=D.filter(t=>e!==t&&e!==(typeof t.node=="function"?t.node():t.node))}function Q(){return D}function Un(e){const t=document;t.readyState&&t.readyState!=="loading"?e():t.addEventListener("DOMContentLoaded",e)}let V=null;const Hn={childList:!0,subtree:!0,attributes:!0};function pt(e){if(!e.observer)return;const t=e.observer;t.pendingScan||(t.pendingScan=setTimeout(()=>{delete t.pendingScan,V&&V(e)}))}function qn(e,t){if(!e.observer)return;const n=e.observer;if(!n.pendingScan)for(let r=0;r<t.length;r++){const o=t[r];if(o.addedNodes&&o.addedNodes.length>0||o.type==="attributes"&&o.target[j]!==void 0){n.paused||pt(e);return}}}function mt(e,t){e.observer.instance.observe(t,Hn)}function ne(e){let t=e.observer;if(t&&t.instance)return;const n=typeof e.node=="function"?e.node():e.node;!n||!window||(t||(t={paused:0},e.observer=t),t.instance=new window.MutationObserver(qn.bind(null,e)),mt(e,n),t.paused||pt(e))}function Ne(){Q().forEach(ne)}function ht(e){if(!e.observer)return;const t=e.observer;t.pendingScan&&(clearTimeout(t.pendingScan),delete t.pendingScan),t.instance&&(t.instance.disconnect(),delete t.instance)}function Qn(e){const t=V!==null;if(V!==e&&(V=e,t&&Q().forEach(ht)),t){Ne();return}Un(Ne)}function xe(e){(e?[e]:Q()).forEach(t=>{if(!t.observer){t.observer={paused:1};return}const n=t.observer;if(n.paused++,n.paused>1||!n.instance)return;n.instance.disconnect()})}function Gn(e){if(e){const t=q(e);t&&xe(t)}else xe()}function we(e){(e?[e]:Q()).forEach(t=>{if(!t.observer){ne(t);return}const n=t.observer;if(n.paused&&(n.paused--,!n.paused)){const r=typeof t.node=="function"?t.node():t.node;if(r)n.instance?mt(t,r):ne(t);else return}})}function Kn(e){if(e){const t=q(e);t&&we(t)}else we()}function gt(e,t=!1){const n=dt(e,t);return ne(n),n}function bt(e){const t=q(e);t&&(ht(t),$n(e))}function Wn(e,t){if(e.name!==t.name||e.mode!==t.mode)return!0;const n=e.customisations,r=t.customisations;for(const o in ie)if(n[o]!==r[o])return!0;return!1}function Jn(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/o,s%1===0?r(s):0)}}return t}const Xn=/[\s,]+/;function Yn(e,t){t.split(Xn).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const Zn=["width","height"],eo=["inline","hFlip","vFlip"];function to(e,t){return e===t||e==="true"?!0:e===""||e==="false"?!1:null}function no(e){const t=e.getAttribute("data-icon"),n=typeof t=="string"&&B(t,!0);if(!n)return null;const r={...ie,inline:e.classList&&e.classList.contains(ve)};Zn.forEach(c=>{const l=e.getAttribute("data-"+c);l&&(r[c]=l)});const o=e.getAttribute("data-rotate");typeof o=="string"&&(r.rotate=Jn(o));const s=e.getAttribute("data-flip");typeof s=="string"&&Yn(r,s),eo.forEach(c=>{const l="data-"+c,a=to(e.getAttribute(l),l);typeof a=="boolean"&&(r[c]=a)});const i=e.getAttribute("data-mode");return{name:t,icon:n,customisations:r,mode:i}}const oo="svg."+fe+", i."+fe+", span."+fe+", i."+ve+", span."+ve;function ro(e){const t=[];return e.querySelectorAll(oo).forEach(n=>{const r=n[j]||n.tagName.toLowerCase()!=="svg"?no(n):null;r&&t.push({node:n,props:r})}),t}function yt(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}let z;function so(){try{z=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{z=null}}function io(e){return z===void 0&&so(),z?z.createHTML(e):e}function vt(e){const t=new Set(["iconify"]);return["provider","prefix"].forEach(n=>{e[n]&&t.add("iconify--"+e[n])}),t}function xt(e,t,n,r){const o=e.classList;if(r){const i=r.classList;Array.from(i).forEach(c=>{o.add(c)})}const s=[];return t.forEach(i=>{o.contains(i)?n.has(i)&&s.push(i):(o.add(i),s.push(i))}),n.forEach(i=>{t.has(i)||o.remove(i)}),s}function wt(e,t,n){const r=e.style;(n||[]).forEach(s=>{r.removeProperty(s)});const o=[];for(const s in t)r.getPropertyValue(s)||(o.push(s),r.setProperty(s,t[s]));return o}function St(e,t,n){let r;try{r=document.createElement("span")}catch{return e}const o=t.customisations,s=oe(n,o),i=e[j],c=yt(Ye(s.body),{"aria-hidden":"true",role:"img",...s.attributes});r.innerHTML=io(c);const l=r.childNodes[0],a=e.attributes;for(let g=0;g<a.length;g++){const v=a.item(g),_=v.name;_!=="class"&&!l.hasAttribute(_)&&l.setAttribute(_,v.value)}const u=vt(t.icon),p=xt(l,u,new Set(i&&i.addedClasses),e),f=wt(l,o.inline?{"vertical-align":"-0.125em"}:{},i&&i.addedStyles),h={...t,status:"loaded",addedClasses:p,addedStyles:f};return l[j]=h,e.parentNode&&e.parentNode.replaceChild(l,e),l}function co(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function ao(e){return"data:image/svg+xml,"+co(e)}function lo(e){return'url("'+ao(e)+'")'}const uo={display:"inline-block"},Se={"background-color":"currentColor"},It={"background-color":"transparent"},Fe={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Ve={"-webkit-mask":Se,mask:Se,background:It};for(const e in Ve){const t=Ve[e];for(const n in Fe)t[e+"-"+n]=Fe[n]}function ze(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}function fo(e,t,n,r){const o=t.customisations,s=oe(n,o),i=s.attributes,c=e[j],l=yt(s.body,{...i,width:n.width+"",height:n.height+""}),a=vt(t.icon),u=xt(e,a,new Set(c&&c.addedClasses)),f={"--svg":lo(l),width:ze(i.width),height:ze(i.height),...uo,...r?Se:It};o.inline&&(f["vertical-align"]="-0.125em");const h=wt(e,f,c&&c.addedStyles),g={...t,status:"loaded",addedClasses:u,addedStyles:h};return e[j]=g,e}let K=!1;function po(){K||(K=!0,setTimeout(()=>{K&&(K=!1,L())}))}function L(e,t=!1){const n=Object.create(null);function r(o,s){const{provider:i,prefix:c,name:l}=o,a=C(i,c),u=a.icons[l];if(u)return{status:"loaded",icon:u};if(a.missing.has(l))return{status:"missing"};if(s&&!Fn(o)){const p=n[i]||(n[i]=Object.create(null));(p[c]||(p[c]=new Set)).add(l)}return{status:"loading"}}(e?[e]:Q()).forEach(o=>{const s=typeof o.node=="function"?o.node():o.node;if(!s||!s.querySelectorAll)return;let i=!1,c=!1;function l(a,u,p){if(c||(c=!0,xe(o)),a.tagName.toUpperCase()!=="SVG"){const f=u.mode,h=f==="mask"||(f==="bg"?!1:f==="style"?p.body.indexOf("currentColor")!==-1:null);if(typeof h=="boolean"){fo(a,u,{...U,...p},h);return}}St(a,u,p)}ro(s).forEach(({node:a,props:u})=>{const p=a[j];if(!p){const{status:h,icon:g}=r(u.icon,!0);if(g){l(a,u,g);return}i=i||h==="loading",a[j]={...u,status:h};return}let f;if(Wn(p,u)){if(f=r(u.icon,p.name!==u.name),!f.icon){i=i||f.status==="loading",Object.assign(p,{...u,status:f.status});return}}else{if(p.status!=="loading")return;if(f=r(u.icon,!1),!f.icon){p.status=f.status;return}}l(a,u,f.icon)}),o.temporary&&!i?bt(s):t&&i?gt(s,!0):c&&o.observer&&we(o)});for(const o in n){const s=n[o];for(const i in s){const c=s[i];Te(Array.from(c).map(l=>({provider:o,prefix:i,name:l})),po)}}}function mo(e){const t=q(e);t?L(t):L({node:e,temporary:!0},!0)}function kt(e,t,n=!1){const r=H(e);if(!r)return null;const o=B(e),s=ft(ie,t||{}),i=St(document.createElement("span"),{name:e,icon:o,customisations:s},r);return n?i.outerHTML:i}function ho(){return"3.1.1"}function go(e,t){return kt(e,t,!1)}function bo(e,t){return kt(e,t,!0)}function yo(e,t){const n=H(e);if(!n)return null;const r=ft(ie,t||{});return oe(n,r)}function vo(e){e?mo(e):L()}if(typeof document<"u"&&typeof window<"u"){zn();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!We(r))&&console.error(n)}catch{console.error(n)}})}setTimeout(()=>{Qn(L),L()})}function xo(e,t){st(e,t!==!1)}function wo(e){st(e,!0)}it("",_n);if(typeof document<"u"&&typeof window<"u"){rt();const e=window;if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(const n in t){const r="IconifyProviders["+n+"] is invalid.";try{const o=t[n];if(typeof o!="object"||!o||o.resources===void 0)continue;ct(n,o)||console.error(r)}catch{console.error(r)}}}}const So={getAPIConfig:se,setAPIModule:it,sendAPIQuery:ut,setFetch:vn,getFetch:xn,listAPIProviders:bn},Io={_api:So,addAPIProvider:ct,loadIcons:Te,loadIcon:Vn,iconExists:cn,getIcon:an,listIcons:on,addIcon:sn,addCollection:We,replaceIDs:Ye,calculateSize:pe,buildIcon:oe,getVersion:ho,renderSVG:go,renderHTML:bo,renderIcon:yo,scan:vo,observe:gt,stopObserving:bt,pauseObserver:Gn,resumeObserver:Kn,enableCache:xo,disableCache:wo};try{self.Iconify===void 0&&(self.Iconify=Io)}catch{}const ko=e=>{const t={};let n=null;return T.forEachBlockletSync(e,r=>{t[r.meta.bundleDid]?n=T.getDisplayName(r,!0):r.meta.bundleDid&&(t[r.meta.bundleDid]=!0)}),n},Eo=(e,t,n)=>{const{hostname:r,href:o}=e;if(!t)return o;if(n){const i=/\d+[-.]\d+[-.]\d+[-.]\d+/.exec(r);if(!i)return o;const c=i[0],a=((t.site?.domainAliases||[]).map(u=>u.value).filter(Boolean).find(u=>u.endsWith(N.DEFAULT_DID_DOMAIN))||"").replace(`.${N.DEFAULT_DID_DOMAIN}`,"");return a?o.replace(r,`${a}-${c}.${N.DEFAULT_IP_DOMAIN_SUFFIX}`):o}return o.replace(t.meta.bundleDid,t.appPid)};function _o(){const{t:e}=$e(),{api:t}=Ue(),{blocklet:n}=$t(),{inService:r}=Et(),[o,s]=y.useState(!1),[i,c]=y.useState(5),l=n&&n.structVersion!==N.APP_STRUCT_VERSION,a=()=>{try{if(n.status==="running"){W.error(e("blocklet.migrate.tip.running"));return}const f=ko(n);if(f){W.error(e("blocklet.migrate.tip.duplicate",{name:f}));return}s(!0)}catch(f){W.error(Qe(f))}},u=()=>{const f=Eo(window.location,n,r);setTimeout(()=>{window.location.href=f},5e3),c(5),setInterval(()=>{c(h=>h-1)},1e3)},p=()=>s(!1);return[l&&d.jsxs(He,{severity:"warning",style:{margin:"12px 0"},children:[d.jsxs(Y,{sx:{display:"flex",alignItems:"center"},children:[d.jsx(qe,{variant:"contained",size:"small",color:"primary",onClick:()=>a(),style:{marginRight:8},children:e("blocklet.migrate.intro.l1")}),d.jsx("span",{children:e("blocklet.migrate.intro.l2")})]}),["l3","l4","l5","l6"].map(f=>d.jsx(Y,{sx:{display:"flex",alignItems:"center"},children:e(`blocklet.migrate.intro.${f}`)},f))]},"alert"),n&&d.jsx(_t,{popup:!0,open:o,saveConnect:!1,forceConnected:!1,action:"migrate-app-to-struct-v2",checkFn:t.get,checkTimeout:5*60*1e3,onSuccess:u,extraParams:{appDid:n.appDid,did:n.meta.did,wt:Ct(n,!0),title:T.getDisplayName(n)},messages:{title:e("blocklet.migrate.title"),scan:e("blocklet.migrate.scan"),confirm:e("blocklet.migrate.confirm"),success:i>=0?e("blocklet.migrate.success",{sec:i}):"Redirecting..."},onClose:p},"connect")]}const Co=y.lazy(()=>k(()=>import("./overview-N_ciTHKs.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]),import.meta.url)),To=y.lazy(()=>k(()=>import("./domains-Ba91DmOX.js"),__vite__mapDeps([16,1,2,17,18,10,19,12,20,21,22,23,24,25,26,27,28,29,9,30,31,32,33,34,5]),import.meta.url)),jo=y.lazy(()=>k(()=>import("./index-DNy1-otX.js"),__vite__mapDeps([35,1,2,36,7,37,38,39,40,41,19,5,42,43,44,45,46,47,48,49,50,51,10,52,53,22,11,12,9,4,6,17,54,55,56,57,26,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,25]),import.meta.url)),Po=y.lazy(()=>k(()=>import("./appearance-B9fu42ad.js"),__vite__mapDeps([77,1,2,10,72]),import.meta.url)),Ao=y.lazy(()=>k(()=>import("./config-navigation-HsCZP_KM.js"),__vite__mapDeps([78,1,2,7,79,37,80,64,10,54,55,56,81,11,12,74,75,68,76,46,47,19,51,73,41,67,45,15,48,49,82,83,29,39,34]),import.meta.url)),Do=y.lazy(()=>k(()=>import("./index-BJi0KLKD.js"),__vite__mapDeps([84,1,2,60,61,62,63,54,55,56,64,17,65,66,67,68,74,75,12,76,46,47,19,50,41,51,43,10,52,85,9,86,87,39,88,40,89,90,91,92,93,59,72]),import.meta.url)),Oo=y.lazy(()=>k(()=>import("./audit-logs-D8ZHDIr5.js"),__vite__mapDeps([94,17,1,2,65,66,67,75,95,96,97,85,11,10,12]),import.meta.url)),Lo=y.lazy(()=>k(()=>import("./index-ijZD2Gee.js").then(e=>e.i),__vite__mapDeps([98,1,2,60,61,62,63,54,55,56,64,17,65,66,67,68,41,11,10,12,72,99,46,47,19,100,79,26,44,101,102]),import.meta.url)),Bo=y.lazy(()=>k(()=>import("./index-vaPTgN2r.js").then(e=>e.i),__vite__mapDeps([103,1,2,26,104,60,61,62,63,54,55,56,64,17,65,66,67,68,29,83,12,11,10,19,22,92,93,59,41,9,105,106,6,107,108,20,85]),import.meta.url)),Mo=y.lazy(()=>k(()=>import("./service-C3ESAoY1.js"),__vite__mapDeps([109,1,2,110,61,62,63,89,56,81,55,93,41,26,12,67,111,40,88,66,45]),import.meta.url)),Ro=y.lazy(()=>k(()=>import("./index-BLpgHHR-.js"),__vite__mapDeps([112,1,2,17,74,75,68,12,76,46,47,19,57,52,10,111,110,61,62,63,89,56,81,55,93,41,26,67,40,88,66,45,36,7,37,38,39,22,99,113,114,48,49,105,24,115,42,106,21,116,117,118,32,119,8,14,15,33,120,3,121,95,96,97,43,100,79,122,123,9,82,124,30,31,72,23,20,125,11]),import.meta.url)),No=y.lazy(()=>k(()=>import("./log-H6ZEmpY1.js"),__vite__mapDeps([126,1,2,75,127,46,47,128,49]),import.meta.url)),Fo=y.lazy(()=>k(()=>import("./runtime-DgZNKPs1.js"),__vite__mapDeps([129,1,2,60,61,62,63,54,55,56,64,17,65,66,67,68,10,120,130,90,91,23,12,102,47]),import.meta.url)),Vo=y.lazy(()=>k(()=>import("./traffic-DR9L6nFW.js").then(e=>e.t),__vite__mapDeps([87,1,2,39,88,40,89,56,90,91,92,93,62,59]),import.meta.url)),zo=y.lazy(()=>k(()=>import("./index-a7RH9Stt.js"),__vite__mapDeps([131,1,2,41,10,72,119,99,46,47,8,14,15,106,33,120,3,9,91,60,61,62,63,54,55,56,64,17,65,66,67,68,74,75,12,76,19,57,52,101]),import.meta.url)),$o=({children:e})=>e;function Uo(){const e=Tt(),{tab:t="overview"}=Ge(),{did:n,blocklet:r,error:o,client:s,actions:{setBlocklet:i,refreshBlocklet:c}}=qt(),{refresh:l}=jt(),{t:a}=$e(),{session:u}=Ue(),p=Pt(()=>u.user?.role&&At.includes(u.user.role),[u]),f=y.useCallback(()=>d.jsx(Oo,{scope:n}),[n]),h=y.useCallback(()=>p?d.jsx(Do,{blocklet:r}):d.jsx(Ut,{status:403}),[r,p]),g=r?.environments.find(b=>b.key==="BLOCKLET_APP_URL")?.value||window.location.origin,v=b=>Ot(b,g),_=b=>{e(`/blocklets/${n}/${b}`)},O=b=>{b&&i(b),c()},I=!r||je(r.status)?[]:T.getAppMissingConfigs(r);let x=null;const w=[{label:a("common.overview"),value:"overview"},{breadcrumbsLabel:a("common.components"),label:d.jsx(Dt,{"data-cy":"blocklet-list",color:"error",variant:"dot",invisible:!I.length,children:a("common.components")}),value:"components"}];if(o)x=d.jsxs(d.Fragment,{children:[d.jsx(He,{severity:"error",variant:"icon",children:Qe(o)}),d.jsx(qe,{onClick:()=>c(),children:d.jsx("span",{style:{textDecoration:"underline"},children:a("common.retry")})})]});else if(r){const b={overview:d.jsx(Co,{}),domains:d.jsx(To,{}),configuration:jo,appearance:Po,navigation:Ao,services:Mo,members:d.jsx(Bo,{type:"blocklet",createPassportSvg:v}),passports:Lo,components:Ro,"audit-logs":f,notifications:h,logs:No,runtime:d.jsx(Fo,{}),traffic:d.jsx(Vo,{client:s,did:n}),didSpaces:d.jsx(zo,{})};t==="configuration"&&je(r.status)&&_("overview"),w.push({label:a("common.domains"),value:"domains"}),w.push({label:a("common.members"),value:"members"}),w.push({label:a("team.member.passports"),value:"passports"}),w.push({label:a("common.configuration"),value:"configuration"}),w.push({label:a("common.appearance"),value:"appearance"}),w.push({label:a("common.auditLogs"),value:"audit-logs"}),p&&w.push({label:a("common.notificationRecords"),value:"notifications"}),r&&r.children?.length&&r.structVersion===N.APP_STRUCT_VERSION&&w.push({label:a("common.logs"),value:"logs"}),w.push({label:a("common.configNavigation"),value:"navigation"}),w.push({label:a("common.runtime"),value:"runtime"}),w.push({label:a("common.traffic"),value:"traffic"}),w.push({label:a("storage.spaces.title"),value:"didSpaces"}),T.getBlockletServices(r).length&&w.splice(2,0,{label:a("blocklet.services"),value:"services"});const ce=b[t]||b.overview;x=d.jsxs(Vt,{type:"components",children:[!T.isExternalBlocklet(r)&&d.jsx(Nt,{tabs:w,current:t,onChange:_,scrollButtons:"auto"}),d.jsx("div",{className:"page-content",children:d.jsx(y.Suspense,{fallback:d.jsx(Pe,{relative:"parent",children:d.jsx(Ae,{})}),children:y.isValidElement(ce)?ce:d.jsx(ce,{blocklet:r,onUpdate:O,createPassportSvg:v})})})]})}else x=d.jsx(Pe,{relative:"parent",children:d.jsx(Ae,{})});const M=()=>{},m=({action:b,error:E})=>{if(E){W.error(E.message);return}b==="remove"?(l(),e("/blocklets")):c()},S=w.find(b=>b.value===t),P=r?Qt:$o;return d.jsx(P,{teamDid:n,children:d.jsxs(Ho,{children:[d.jsxs(Kt,{separator:"›","aria-label":"breadcrumb",className:"page-breadcrumb",children:[d.jsx(Lt,{color:"textSecondary",to:"/blocklets",children:a("common.blocklets")}),d.jsx(Bt,{to:`/blocklets/${n}/overview`,style:b=>b?{color:"inherit"}:{},children:a("common.detail")}),d.jsx(ae,{color:"textSecondary",children:S?S.breadcrumbsLabel||S.label:""})]}),d.jsxs(ae,{component:"div",className:"page-header",children:[d.jsxs(ae,{component:"h2",variant:"h4",className:"page-title",color:"textPrimary",children:[r?d.jsx(Mt,{blocklet:r,style:{marginRight:16}}):null,r?d.jsxs(Y,{sx:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:1},children:[d.jsx(Y,{children:T.getDisplayName(r)}),r?.status!=="unknown"&&d.jsx(Ft,{size:"12px",status:r.status,source:r.source,progress:r.progress})]}):`${a("common.blocklet")} ${a("common.detail")}`]}),d.jsx(Gt,{permission:"mutate_blocklets",children:!!r&&!T.isExternalBlocklet(r)&&d.jsx(zt,{className:"page-actions",blocklet:r,onStart:M,onComplete:m,variant:"group"})})]}),d.jsx(_o,{}),x]})})}function ir(){const{did:e}=Ge();return e?d.jsx(Ht,{did:e,children:d.jsx(Uo,{})}):null}const Ho=Rt.main`
|
|
13
|
-
.page-header {
|
|
14
|
-
display: flex;
|
|
15
|
-
justify-content: space-between;
|
|
16
|
-
align-items: center;
|
|
17
|
-
flex-wrap: wrap;
|
|
18
|
-
gap: 16px;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.page-title {
|
|
22
|
-
display: flex;
|
|
23
|
-
align-items: center;
|
|
24
|
-
|
|
25
|
-
.page-link {
|
|
26
|
-
font-size: 15px;
|
|
27
|
-
margin-top: 8px;
|
|
28
|
-
margin-left: 8px;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.page-content {
|
|
33
|
-
margin-top: 16px;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
@media (max-width: ${e=>e.theme.breakpoints.values.md}px) {
|
|
37
|
-
.page-header {
|
|
38
|
-
flex-direction: column;
|
|
39
|
-
align-items: flex-start;
|
|
40
|
-
.page-actions,
|
|
41
|
-
.MuiButtonGroup-root {
|
|
42
|
-
width: 100%;
|
|
43
|
-
}
|
|
44
|
-
.MuiButtonGroup-root {
|
|
45
|
-
.MuiButtonBase-root {
|
|
46
|
-
flex: 1;
|
|
47
|
-
}
|
|
48
|
-
.blocklet-action-text {
|
|
49
|
-
display: none;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.page-title {
|
|
55
|
-
margin-bottom: 15px;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
`;export{ir as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{dt as e,eS as r,eT as s}from"./index-CX6gDshF.js";const a=e(r),t=e(s);export{a,t as r};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{fp as e}from"./index-CX6gDshF.js";var i=e();export{i as e};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r}from"./index-CX6gDshF.js";function a(t){return r.Children.toArray(t).filter(e=>r.isValidElement(e))}export{a as g};
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import{aG as Ge,j as e,bn as gt,r as g,by as X,bf as H,H as q,E as D,p as xt,o as d,h as te,au as bt,az as jt,N as y,T as $,m as Q,eK as Fe,Q as Pe,ia as Ye,bj as Te,aU as Ie,V as Ee,dE as we,b3 as Ue,b1 as Ae,C as Xe,f as Qe,eY as Je,aP as De,W as yt,at as Ze,ib as et,v as Oe,e_ as tt,fo as ye,fE as st,dy as St,s as ie,ag as pe,G as qe,av as vt,ic as Ct,id as Nt,$ as nt,ie as wt,ig as Rt,ih as Tt,ii as It,P as Et,bt as it,M as At,R as Dt,S as Ot,U as $e,ij as Lt,a4 as kt}from"./index-CX6gDshF.js";import{d as Ft,H as at,g as Pt}from"./index-DMhD7EeU.js";import{R as _e,S as _t}from"./actions-BasLLFLB.js";import{B as Bt}from"./index-Bo_5PZBY.js";import{S as me}from"./shorten-label-NmOkB2cg.js";import{v as ot}from"./index-DmpIRzjQ.js";import{T as zt}from"./index-rqx96NXG.js";import{R as Wt}from"./Refresh-BGBC8bFM.js";import{D as Mt,g as Kt}from"./traffic-DR9L6nFW.js";import{u as Ht}from"./use-mobile-MMitRVbD.js";import"./FilterList-BAa4N29F.js";import"./CSSTransition-sQz5ESLI.js";import"./emotion-cache.browser.esm-LZWLgccN.js";import"./index-Nhy6IaeB.js";import"./redux-DfszZyTl.js";import"./typeof-QjJsDpFa.js";import"./depsEqual-KodVUXvV.js";import"./index-D18Kk1fT.js";import"./TableSearch-Ba0268Ym.js";import"./Search-B-mOt1mV.js";import"./Clear-CseZqtJJ.js";import"./MoreVert-CPqEfvtL.js";import"./useLocalStorage-DBFHYH4w.js";import"./url-evaluation-c4Fe77Jg.js";import"./get-safe-url-Ye2EWwkH.js";import"./ButtonGroup-DEvYFpA9.js";import"./getValidReactChildren-CcAo1bEa.js";import"./permission-xI7TPD_-.js";import"./index.esm-CSlUhA6z.js";import"./collapse-D8BjMRV-.js";import"./blocklet-DTKRGXY2.js";import"./Switch-BXS-cMbK.js";import"./iframe-CUpb7ICB.js";import"./ChevronLeft-4c5hb-O9.js";import"./ChevronRight-gJV_CVk6.js";import"./index-DBii9-f-.js";import"./base-chart-CZ5IfPx1.js";import"./index-BfXbyXkW.js";import"./AdapterDayjs-BtMrgFCS.js";import"./useThemeProps-CHzERYQJ.js";import"./visuallyHidden-Dan1xhjv.js";const Ut=Ge(e.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"})),qt=Ge(e.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"})),rt=g.createContext({}),{Provider:$t,Consumer:an}=rt;function Vt({children:t,blocklet:s=""}){const{api:n,inService:r,ws:{useSubscription:a}}=gt(),[l,x]=g.useState([]),[u,T]=g.useState({total:0,pageSize:20,pageCount:0,page:1}),f=X(()=>s.meta?.did,[s]),[v,C]=g.useState([]),[F,_]=g.useState({}),N=X(()=>l.length?new Set(l.map(h=>h.id)):new Set,[l]),V=async({page:h=1,pageSize:S=20,...I}={})=>{if(!f)return[];try{const w={paging:{page:h,pageSize:S},...I,teamDid:f,dateRange:I.dateRange?[H(I.dateRange[0]).toISOString(),H(I.dateRange[1]).toISOString()]:void 0},{dids:E,...k}=w;let B="";E&&E.includes("system")&&(B="system");const ae=E?E.filter(oe=>oe!=="system"):[],ne={...k,source:B,componentDids:ae},ee=await n.getNotificationSendLog({input:ne});return _(ne),x(ee.list),T(ee.paging),ee.list}catch(w){return q.error(w.message),[]}},P=async()=>{const h=await n.getNotificationComponents({input:{teamDid:f}});C(h.componentDids)},L=g.useCallback(h=>{const S=s.children.find(I=>I.meta?.did===h);if(S)return S.ancestors=[s],S},[s]),W=async({notificationId:h,receivers:S,channels:I,...w})=>{await n.resendNotification({input:{teamDid:f,notificationId:h,receivers:S,channels:I.map(E=>E==="wallet"?D.NOTIFICATION_SEND_CHANNEL.WALLET:E==="pushKit"?D.NOTIFICATION_SEND_CHANNEL.PUSH:E),...w}})},U=g.useCallback(async h=>(await n.getUser({input:{teamDid:f,user:{did:h}}})).user,[n,f]),Y=g.useCallback(async({page:h=1,pageSize:S=20,...I}={})=>{try{const w={paging:{page:h,pageSize:S},...I,userName:I.searchText||"",teamDid:f,dateRange:I.dateRange?[H(I.dateRange[0]).toISOString(),H(I.dateRange[1]).toISOString()]:void 0};return await n.getReceivers({input:w})}catch(w){throw q.error(w.message),w}},[n,f]);g.useEffect(()=>{f&&P()},[f]),a(D.EVENTS.NOTIFICATION_BLOCKLET_UPDATE,h=>{N.has(h.notificationId)&&V(F)},[N,F]),a(D.EVENTS.NOTIFICATION_BLOCKLET_CREATE,h=>{N.has(h.id)||V(F)},[N,F]);const Z={fetch:V,data:l,paging:u,blocklet:s,getComponent:L,resendNotification:W,getUser:U,componentDids:v,getReceivers:Y,inService:r,teamDid:f};return e.jsx($t,{value:{notificationRecords:Z},children:t})}function Be(){const{notificationRecords:t}=g.useContext(rt);return t}he.propTypes={severity:d.oneOf(Object.values(["info","success","error","warning"])).isRequired};const Gt={info:"primary",success:"success",error:"error",warning:"warning"};function he({severity:t="info"}){return e.jsx(xt,{type:Gt[t],children:t})}const Yt=(t,s,n="")=>{if(!n||!s)return"";switch(n){case D.NOTIFICATION_SEND_FAILED_REASON.USER_DISABLED:return t("notification.sendStatus.reason.disabled",{channel:s});case D.NOTIFICATION_SEND_FAILED_REASON.CHANNEL_UNAVAILABLE:return t("notification.sendStatus.reason.unavailable",{channel:s});case D.NOTIFICATION_SEND_FAILED_REASON.CHANNEL_DISABLED:return t("notification.sendStatus.reason.notSent",{channel:s});case D.NOTIFICATION_SEND_FAILED_REASON.NOT_ONLINE:return t("notification.sendStatus.reason.offline");default:return n}};function lt(t,s,n={}){const{status:r,updatedAt:a,reason:l="",channel:x="wallet"}=n,u=a?t("notification.sendStatus.sentTime",{date:bt(a,s)}):"",T=Yt(t,x,l);return r===D.NOTIFICATION_SEND_STATUS.FAILED?{status:"failed",title:t("notification.sendStatus.failed"),sentTime:u,reason:T}:r===D.NOTIFICATION_SEND_STATUS.SENT?{status:"success",title:t("notification.sendStatus.success"),sentTime:u}:{status:"pending",title:t("notification.sendStatus.pending"),reason:T,sentTime:u}}const Le={pending:"#aaaaaa",success:"#34BE74",failed:"#D0021B"},ke=["wallet","pushKit","email"],Ve=["info","success","error","warning"],ct=t=>{const{settings:s}=t;return s?.notification?.email?.enabled},dt=t=>{const{settings:s}=t;return s?.notification?.pushKit?.enabled},Xt=(t,s)=>{const n=te(s,"extra.notifications.email",!0);return{available:ct(t),enabled:n}},Qt=(t,s)=>{const n=te(s,"extra.notifications.push",!0);return{available:dt(t),enabled:n}},Jt=t=>({enabled:te(t,"extra.notifications.wallet",!0)}),Zt=t=>({enabled:te(t,"extra.webhooks",[]).length>0}),be=(t=3)=>new Promise(s=>{setTimeout(()=>{s()},t*1e3)}),es=(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})}]:[],je=(t=[])=>{const s=H().startOf("day");return t.filter(n=>H(n.sendAt).isSame(s,"day")).length},ts=(t,s="")=>{if(s&&ke.includes(s)){const l=`${s}SendRecord`,x=te(t,l,[]);return je(x)}const n=te(t,"webhook",{}),r=Object.keys(n??{})??[];if(s&&r.includes(s)){const l=n[s]??[];return je(l)}const a={};return ke.forEach(l=>{const x=`${l}SendRecord`,u=te(t,x,[]),T=je(u);a[l]=T}),r.length>0&&r.forEach(l=>{const x=n[l]??[],u=je(x);a[l]=u}),a},Se=(t,s,n)=>{if(!Array.isArray(t))throw new Error("Invalid filterList or index");return t[n].splice(s,1),t},ve=(t,s)=>{if(!Array.isArray(s))throw new Error("filters must be an array");return s.length?!s.includes(t):!1},ss=t=>{switch(t){case D.NOTIFICATION_SEND_CHANNEL.WALLET:return"Wallet";case D.NOTIFICATION_SEND_CHANNEL.PUSH:return"Push Kit";case D.NOTIFICATION_SEND_CHANNEL.EMAIL:return"Email";case D.NOTIFICATION_SEND_CHANNEL.WEBHOOK:return"Webhook";default:return""}},ut=()=>({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 se({config:t,enableTooltip:s=!0,showTitle:n=!1,children:r=null}){const{status:a,title:l="",sentTime:x="",reason:u=""}=t,T=[l,u].filter(Boolean).join(", ");return e.jsx(jt,{title:s?e.jsxs(e.Fragment,{children:[e.jsx($,{color:"inherit",sx:{fontSize:12},children:T}),e.jsx("span",{children:x})]}):null,arrow:!0,placement:"top",children:e.jsxs(y,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:"4px"},children:[e.jsxs(y,{sx:{position:"relative",minHeight:14,minWidth:14,display:"flex",alignItems:"center",justifyContent:"center"},children:[e.jsx(y,{style:{opacity:.15},sx:{position:"absolute",width:"100%",height:"100%",borderRadius:"50%",bgcolor:Le[a]}}),e.jsx(y,{sx:{position:"absolute",width:"55%",height:"55%",borderRadius:"50%",bgcolor:Le[a]}})]}),e.jsx($,{color:"inherit",sx:{fontSize:12},children:n?l:r})]})})}se.propTypes={config:d.object.isRequired,enableTooltip:d.bool,showTitle:d.bool,children:d.node};Ce.propTypes={list:d.array.isRequired,label:d.string.isRequired,onDelete:d.func};function Ce({list:t,label:s,onDelete:n=()=>{}}){const{t:r,locale:a}=Q();return e.jsxs(y,{sx:{display:"flex",gap:1,alignItems:"center"},children:[e.jsxs($,{children:[s,": "]}),t.map(l=>{const x=lt(r,a,{status:l});return e.jsx(Fe,{size:"small",label:e.jsx(y,{sx:{display:"flex",alignItems:"center",gap:"4px"},children:e.jsx(se,{config:x,enableTooltip:!1,children:x.title})}),onDelete:u=>n(u,l)},l)})]})}ze.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 ze({filterList:t,onChange:s,index:n,column:r,filterValues:a,label:l,renderLabel:x}){return e.jsxs(Pe,{className:"filter-container",children:[e.jsx(Ye,{component:"legend",children:l}),e.jsx(Te,{row:!0,children:a.map(u=>e.jsx(Ie,{control:e.jsx(Ee,{checked:t[n].indexOf(u.value??u)>-1,onChange:T=>{const f=[...t];T.target.checked?f[n]=[...f[n],u.value??u]:f[n]=f[n].filter(v=>v!==(u.value??u)),s(f[n],n,r)},name:u.value??u}),label:e.jsx("span",{style:{display:"flex",alignItems:"center"},children:x(u)})},u.value??u))})]})}function Re(t){return e.jsx(ze,{...t,renderLabel:s=>e.jsx(se,{enableTooltip:!1,config:{status:s.status},children:s.label})})}ce.propTypes={status:d.number.isRequired,updatedAt:d.string.isRequired,reason:d.string,channel:d.string,onResend:d.func};function ce({status:t,updatedAt:s,reason:n="",channel:r="wallet",onResend:a}){const{t:l,locale:x}=Q(),u=lt(l,x,{status:t,updatedAt:s,reason:n,channel:r});return e.jsxs(y,{sx:{display:"flex",alignItems:"center",gap:1},children:[e.jsx(se,{config:u,showTitle:!0}),u.status!=="success"&&e.jsx(we,{className:"resend-btn",size:"small",startIcon:e.jsx(_e,{}),sx:{fontSize:12,color:"rgba(0, 0, 0, 0.87)",fontWeight:400,".MuiButton-startIcon":{mr:"2px"}},onClick:a,children:l("notification.resend")})]})}We.propTypes={value:d.array.isRequired,onChange:d.func};function We({value:t,onChange:s}){const{locale:n}=Q(),r=H().toDate(),[a,l]=g.useState(null),x=g.useCallback(f=>{l(a?null:f.currentTarget)},[a]),u=!!a,T=g.useCallback(f=>{if(!f.startDate||!f.endDate){q.error("Please select a date range");return}if(H(f.startDate).isAfter(f.endDate)||!H(f.startDate).isValid()||!H(f.endDate).isValid()){q.error("Invalid date range");return}s([f.startDate,f.endDate]),l(null)},[s]);return e.jsxs("div",{children:[e.jsx($,{component:"div",variant:"h5",color:"textPrimary",style:{fontSize:18,fontWeight:"bold"},sx:{mb:0},children:e.jsxs(we,{onClick:x,variant:"outlined",size:"small",color:"inherit",children:[Ue(t[0],n)," - ",Ue(t[1],n)]})}),e.jsx(Ae,{open:u,anchorEl:a,onClose:()=>{l(null)},anchorOrigin:{vertical:"bottom",horizontal:"left"},children:e.jsx(Mt,{open:!0,maxDate:r,initialDateRange:{startDate:t[0],endDate:t[1]},toggle:x,definedRanges:Kt(r),onChange:T})})]})}Me.propTypes={itemComponent:d.elementType.isRequired};function Me({itemComponent:t,...s}){const{t:n}=Q();return!s?.filterList?.filter(a=>a.length).length?null:e.jsxs(y,{sx:{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(Ft.TableFilterList,{...s,ItemComponent:t})})]})}function Ke({label:t,onDelete:s,canDelete:n=()=>!0,...r}){const a=s&&typeof s=="function"?s:void 0;let l=!0;return n&&typeof n=="function"&&(l=n({label:t,...r})),e.jsx(Fe,{label:t,variant:"outlined",...a&&l?{onDelete:a}:{}})}Ke.propTypes={label:d.string.isRequired,onDelete:d.func,canDelete:d.func};const ns=[{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}];pt.propTypes={loading:d.bool,onCancel:d.func,onConfirm:d.func};function pt({loading:t=!1,onCancel:s=()=>{},onConfirm:n=()=>{}}){const{t:r}=Q(),[a,l]=g.useState(ns),[x,u]=g.useState(!0),T=(v,C)=>{C.checked=v.target.checked;const F=a.map(_=>({..._,checked:_.value===C.value?C.checked:_.checked}));l(F)},f=v=>{v.stopPropagation(),n({channels:a.filter(C=>C.checked).map(C=>C.value),isResendFailedOnly:x})};return e.jsxs(y,{className:"resend-config",sx:{padding:"16px 24px"},children:[e.jsx($,{variant:"body1",component:"div",className:"check-title",sx:{fontWeight:700,mb:1},children:r("notification.config")}),e.jsx(y,{className:"choose-channel",children:e.jsxs(Pe,{component:"fieldset",variant:"standard",children:[e.jsx(Ye,{component:"legend",children:r("notification.selectChannels")}),e.jsx(Te,{sx:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:1},children:a.map(v=>e.jsx(Ie,{control:e.jsx(Ee,{checked:v.checked,onChange:C=>T(C,v),name:v.value}),label:v.label},v.value))})]})}),e.jsx(y,{className:"resend-config-footer",children:e.jsx(Te,{children:e.jsx(Ie,{control:e.jsx(Ee,{checked:x,onChange:v=>u(v.target.checked)}),label:r("notification.resendFailedOnly")})})}),e.jsxs(y,{className:"resend-config-footer-tip",sx:{display:"flex",justifyContent:"flex-end",gap:1},children:[e.jsx(we,{onClick:v=>{v.stopPropagation(),s()},color:"inherit",children:r("common.cancel")}),e.jsxs(we,{onClick:f,color:"primary",disabled:t,variant:"contained",autoFocus:!0,style:{marginLeft:8},children:[t&&e.jsx(Xe,{size:16}),r("common.confirm")]})]})]})}ft.propTypes={notificationId:d.string.isRequired,handleResend:d.func,resending:d.bool};function ft({notificationId:t,handleResend:s,resending:n=!1}){const{t:r,locale:a}=Q(),l=Qe(),x=g.useMemo(()=>Je(l,ut()),[l]),{getReceivers:u,inService:T,teamDid:f,getUser:v,blocklet:C}=Be(),[F,_]=g.useState(!1),[N,V]=g.useState([]),P=De({anchorEl:null,position:null}),L=De({anchorEl:null,position:null}),[W,U]=g.useState(null),[Y,Z]=g.useState({total:0,pageSize:10,pageCount:0,page:1}),[h,S]=g.useState({searchText:"",page:1,pageSize:10,walletSendStatus:[],pushKitSendStatus:[],emailSendStatus:[],dateRange:[H().subtract(1,"month").startOf("day").toDate(),H().endOf("day").toDate()]}),[I,w]=g.useState([]),E=[{label:r("notification.sendStatus.pending"),value:0,status:"pending"},{label:r("notification.sendStatus.success"),value:1,status:"success"},{label:r("notification.sendStatus.failed"),value:2,status:"failed"}],k=async()=>{if(!F&&t)try{_(!0);const i=await u({notificationId:t,...h}),o=i.list.map(c=>({...c,receiverUser:{...c.receiverUser,avatar:st(c.receiverUser.avatar,f,T)}}));V(o),Z(i.paging),_(!1)}catch(i){q.error(i.message),_(!1)}};g.useEffect(()=>{k()},[h]);const B=i=>{i.stopPropagation();const o=i.currentTarget;L.anchorEl=o;const c=o.getBoundingClientRect();L.position={top:c.top+window.scrollY,left:c.left+window.scrollX}},ae=i=>i.data.length?e.jsx("div",{style:{display:"flex",alignItems:"center",padding:"10px"},children:e.jsx(Oe,{className:"resend-btn",size:"small",color:"primary",variant:"contained",startIcon:e.jsx(_e,{}),sx:{".MuiButton-startIcon":{mr:"2px"}},onClick:B,children:r("notification.resend")})}):null,ne={sort:!1,download:!1,print:!1,selectableRows:"multiple",searchPlaceholder:r("common.search"),searchAlwaysOpen:!1,filterType:"checkbox",searchDebounceTime:300,page:Y.page-1,rowsPerPage:Y.pageSize,count:Y.total,searchText:h.searchText,tableBodyMaxHeight:"calc(80vh - 260px)",rowsSelected:I,onRowSelectionChange:(i,o)=>{w(o.map(c=>c.dataIndex))},customToolbarSelect:ae},ee=({page:i,rowsPerPage:o,searchText:c,filterList:j})=>{const[,z=[],G=[],K=[]]=j;h.pageSize!==o?S(M=>({...M,pageSize:o,page:1})):h.page!==i+1?S(M=>({...M,page:i+1})):h.searchText!==c?S(M=>({...M,searchText:c,page:1})):pe(z,h.walletSendStatus)?pe(G,h.pushKitSendStatus)?pe(K,h.emailSendStatus)||S(M=>({...M,emailSendStatus:K,page:1})):S(M=>({...M,pushKitSendStatus:G,page:1})):S(M=>({...M,walletSendStatus:z,page:1}))},oe=g.useCallback(async(i,o)=>{if(!o)return!1;const c=await v(o);return c?i==="wallet"?Jt(c):i==="email"?Xt(C,c):i==="pushKit"?Qt(C,c):i==="webhook"?Zt(c):!0:!1},[v,C]),ge=g.useCallback(i=>es(r,i),[r]),re=()=>{P.anchorEl=null,P.position=null,U(null)},le=()=>{L.anchorEl=null,L.position=null},m=async(i,o,c=!0,j="")=>{if(!(!o.length||!i.length))try{s(i,o,c,j),L.anchorEl||(await be(.5),re())}catch(z){console.error("handleResend error",{error:z})}},p=async({channels:i,isResendFailedOnly:o})=>{const c=I.map(j=>N[j].receiver);await m(i,c,o),await be(.5),le(),w([])},b=async(i,o=[],c=!0)=>{try{await m(["webhook"],[i.receiver],c,o)}catch(j){q.error(j.response?j.response.statusText:j.message)}},R=async(i,o,c,j=[],z=!0)=>{if(i.stopPropagation(),ts(o,c)>=4){q.warning(r("notification.resendLimit"));return}if(!ke.includes(c)){await b(o,j,z);return}if(i){const K=i.currentTarget,M=K.getBoundingClientRect();P.anchorEl=K,P.position={top:M.top+window.scrollY,left:M.left+window.scrollX}}U({channel:c});try{const K=await oe(c,o.receiver);await be(1),U({channel:c,result:K}),(typeof K=="boolean"&&K||St(K)&&Object.values(K).every(M=>!!M))&&(await s([c],[o.receiver],z),L.anchorEl||(await be(.5),re()))}catch(K){q.error(K.message)}},O=i=>{S(o=>({...o,dateRange:i,page:1}))},A=(i,o,c,j)=>{i.stopPropagation();const z=c.filter(G=>G!==o);S(G=>({...G,[j]:z,page:1}))},J=X(()=>[{label:r("notification.receiver"),name:"receiver",width:200,options:{filter:!1,customBodyRenderLite:i=>{const{receiverUser:o,receiver:c}=N[i];return o?e.jsxs(y,{"data-cy":`member-name-${o.fullName}`,sx:{display:"flex",alignItems:"center",gap:1,justifyContent:"flex-start"},children:[e.jsx(Ze,{src:`${o.avatar}?imageFilter=resize&w=48&h=48`,size:32,did:c,shape:"circle",style:{borderRadius:"100%",overflow:"hidden"}}),e.jsx(me,{children:o.fullName})]},c):e.jsx(yt,{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:h.walletSendStatus??[],customFilterListOptions:{render:i=>e.jsx(Ce,{list:i,label:"Wallet",onDelete:(o,c)=>{o.stopPropagation(),A(o,c,J[1].options.filterList,"walletSendStatus")}}),update:Se},filterOptions:{names:E,fullWidth:!0,logic:ve,display:(i,o,c,j)=>e.jsx(Re,{label:"Wallet",filterList:i,onChange:o,index:c,column:j,filterValues:E})},customBodyRenderLite:i=>{const{walletSendStatus:o,walletSendAt:c,walletSendFailedReason:j}=N[i];return e.jsx(ce,{status:o,updatedAt:c,reason:j,channel:"wallet",onResend:z=>R(z,N[i],"wallet",[],!1)})}}},{label:"Push Kit",name:"pushKitSendStatus",width:200,options:{setCellProps:()=>({className:"sent-status-cell"}),customBodyRenderLite:i=>{const{pushKitSendStatus:o,pushKitSendAt:c,pushKitSendFailedReason:j}=N[i];return e.jsx(ce,{status:o,updatedAt:c,reason:j,channel:"pushkit",onResend:z=>R(z,N[i],"pushKit",[],!1)})},filter:!0,filterType:"custom",filterList:h.pushKitSendStatus??[],customFilterListOptions:{render:i=>e.jsx(Ce,{list:i,label:"Push Kit",onDelete:(o,c)=>{o.stopPropagation(),A(o,c,J[2].options.filterList,"pushKitSendStatus")}}),update:Se},filterOptions:{names:E,fullWidth:!0,logic:ve,display:(i,o,c,j)=>e.jsx(Re,{label:"Push Kit",filterList:i,onChange:o,index:c,column:j,filterValues:E})}}},{label:"Email",name:"emailSendStatus",width:200,options:{setCellProps:()=>({className:"sent-status-cell"}),customBodyRenderLite:i=>{const{emailSendStatus:o,emailSendAt:c,emailSendFailedReason:j}=N[i];return e.jsx(ce,{status:o,updatedAt:c,reason:j,channel:"email",onResend:z=>R(z,N[i],"email",[],!1)})},filter:!0,filterType:"custom",filterList:h.emailSendStatus??[],customFilterListOptions:{render:i=>e.jsx(Ce,{list:i,label:"Email",onDelete:(o,c)=>{o.stopPropagation(),A(o,c,J[3].options.filterList,"emailSendStatus")}}),update:Se},filterOptions:{names:E,fullWidth:!0,logic:ve,display:(i,o,c,j)=>e.jsx(Re,{label:"Email",filterList:i,onChange:o,index:c,column:j,filterValues:E})}}},{label:"Webhook",name:"webhook",width:200,options:{filter:!1,setCellProps:()=>({className:"sent-status-cell"}),customBodyRenderLite:i=>{const{webhook:o}=N[i];if(!o)return null;const c=Object.entries(o)[0];if(!c)return null;const[j,z]=c,G=z[0];return e.jsx(y,{sx:{display:"flex",flexDirection:"column",gap:1},children:e.jsxs(y,{className:"webhook-item",sx:{fontSize:12},children:[e.jsx(me,{maxLength:30,children:j},j),e.jsx(ce,{status:G.status,updatedAt:G.sendAt,reason:G.failedReason,channel:"webhook",onResend:K=>R(K,N[i],"webhook",[j],!1)})]},j)})}}},{label:r("common.createdAt"),name:"createdAt",width:100,options:{filter:!1,customBodyRenderLite:i=>{const{createdAt:o}=N[i];return e.jsx(et,{value:o,locale:a,shouldUpdate:!0})}}}],[N,a,h,r]),xe=[e.jsx(We,{value:h.dateRange,onChange:O},"date-picker"),e.jsx(Oe,{variant:"contained",size:"small",color:"primary",loading:F,startIcon:e.jsx(Wt,{}),onClick:()=>k(),sx:{".MuiButton-startIcon":{mr:"2px"}},style:{marginLeft:8},children:r("common.refresh")},"refresh")];return e.jsx(y,{sx:{overflow:"auto",".MuiTableCell-head":{whiteSpace:"nowrap",fontWeight:"bold"},".MuiTableCell-root":{paddingRight:"8px",whiteSpace:"nowrap"}},children:e.jsx(as,{children:e.jsxs(tt,{theme:x,children:[e.jsx(at,{className:"receivers-table",locale:a,loading:F,columns:J,data:N,onChange:ee,options:ne,customButtons:xe,components:{TableFilterList:i=>e.jsx(Me,{...i,itemComponent:o=>e.jsx(Ke,{...o,canDelete:()=>!1})})}}),P.anchorEl&&e.jsx(Ae,{open:!!P.anchorEl,anchorReference:"anchorPosition",anchorPosition:P.position,onClose:re,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},children:e.jsxs(os,{children:[e.jsxs($,{variant:"body1",component:"div",className:"check-title",children:[W?.channel," Checking"]}),e.jsx(y,{sx:{display:"flex",flexDirection:"column",gap:"4px"},children:ge(W?.channel).map(i=>{const{type:o,pass:c,fail:j}=i;return!W?.result||W?.result?.[o]?e.jsxs($,{variant:"body1",component:"div",className:"check-item",sx:{display:"flex",alignItems:"center",gap:"4px",color:W?.result?.[o]?ye.success.main:"inherit"},children:[W?.result?e.jsx(qt,{}):e.jsx(Xe,{size:12,sx:{color:ye.primary.main}}),e.jsx("span",{children:c})]},o):e.jsxs($,{variant:"body1",component:"div",className:"check-item",sx:{display:"flex",alignItems:"center",gap:"4px",color:ye.error.main},children:[e.jsx(Ut,{}),e.jsx("span",{children:j})]},o)})})]})}),L.anchorEl&&e.jsx(Ae,{open:!!L.anchorEl,anchorReference:"anchorPosition",anchorPosition:L.position,onClose:le,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},children:e.jsx(pt,{loading:n,onCancel:le,onConfirm:p})})]})})})}const is=g.memo(ft),as=ie.div`
|
|
2
|
-
td.MuiTableCell-footer {
|
|
3
|
-
border: none !important;
|
|
4
|
-
}
|
|
5
|
-
.sent-status-cell {
|
|
6
|
-
.resend-btn {
|
|
7
|
-
display: none;
|
|
8
|
-
}
|
|
9
|
-
&:hover {
|
|
10
|
-
.resend-btn {
|
|
11
|
-
display: flex;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
`,os=ie.div`
|
|
16
|
-
padding: 8px 16px;
|
|
17
|
-
.check-title {
|
|
18
|
-
font-weight: 500;
|
|
19
|
-
margin-bottom: 8px;
|
|
20
|
-
&::first-letter {
|
|
21
|
-
text-transform: uppercase;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
.check-item {
|
|
25
|
-
svg {
|
|
26
|
-
font-size: 16px;
|
|
27
|
-
}
|
|
28
|
-
font-size: 12px;
|
|
29
|
-
}
|
|
30
|
-
`,fe=t=>t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}K`:t;function rs(t){const{wallet:s,push:n,email:r,webhook:a}=t;return[{name:"Wallet",value:e.jsx(de,{item:s})},{name:"Push",value:e.jsx(de,{item:n})},{name:"Email",value:e.jsx(de,{item:r})},...a.total>0?[{name:"Webhook",value:e.jsx(de,{item:a,isWebhook:!0})}]:[]]}function ls(t,s,n){const{wallet:r,push:a,email:l,webhook:x}=t;return[{name:"Wallet",value:e.jsx(ue,{loading:n,channel:D.NOTIFICATION_SEND_CHANNEL.WALLET,item:r,onResend:s})},{name:"Push",value:e.jsx(ue,{loading:n,channel:D.NOTIFICATION_SEND_CHANNEL.PUSH,item:a,onResend:s})},{name:"Email",value:e.jsx(ue,{loading:n,channel:D.NOTIFICATION_SEND_CHANNEL.EMAIL,item:l,onResend:s})},...x.total>0?[{name:"Webhook",value:e.jsx(ue,{loading:n,channel:D.NOTIFICATION_SEND_CHANNEL.WEBHOOK,item:x,isWebhook:!0,onResend:s})}]:[]]}He.propTypes={statistics:d.object.isRequired,onResend:d.func,mode:d.oneOf(["simple","detail"]),resending:d.bool};de.propTypes={item:d.object.isRequired,isWebhook:d.bool};function de({item:t,isWebhook:s=!1}){const{t:n}=Q(),r=s?t.success.length:t.success,a=t.total,l=r===a?"success":"failed";return e.jsx(y,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",gap:2},children:e.jsx(y,{sx:{display:"flex",alignItems:"center",gap:1},children:e.jsxs(se,{config:{status:l},enableTooltip:!1,children:[fe(r)," / ",fe(a)," ",n("notification.sendStatus.success")]})})})}ue.propTypes={item:d.object.isRequired,isWebhook:d.bool,channel:d.string,onResend:d.func,loading:d.bool};function ue({channel:t=D.NOTIFICATION_SEND_CHANNEL.WALLET,item:s,isWebhook:n=!1,onResend:r=()=>{},loading:a=!1}){const{t:l}=Q(),{success:x,failed:u,pending:T}=s,f=ss(t),v=n?x.length:x,C=n?u.length:u,F=n?T.length:T,_=async L=>{L.stopPropagation();const W=n?[...new Set([...x,...u].map(U=>U))]:[];await r([t],[],!0,W)},N=v+C,V=N>0?v/N*100:0,P=N>0?C/N*100:0;return e.jsxs(cs,{successRatio:V,failedRatio:P,children:[e.jsxs($,{variant:"h6",children:[f," (",s.total,")"]}),e.jsxs($,{variant:"body1",sx:{mb:2},children:[e.jsx("span",{style:{color:Le.success,fontWeight:600,fontSize:24},children:fe(v)}),e.jsx("small",{style:{paddingLeft:4},children:l("notification.sendStatus.success")})]}),e.jsxs(y,{className:"unsent-area",children:[e.jsxs(y,{children:[e.jsxs(se,{config:{status:"failed"},enableTooltip:!1,children:[fe(C)," ",l("notification.sendStatus.failed")]}),e.jsxs(se,{config:{status:"pending"},enableTooltip:!1,children:[fe(F)," ",l("notification.sendStatus.pending")]})]}),C>0&&e.jsx(y,{className:"resend-btn",children:e.jsx(Oe,{size:"small",color:"primary",loading:a,variant:"contained",startIcon:e.jsx(_e,{}),sx:{".MuiButton-startIcon":{mr:"2px"}},onClick:_,children:l("notification.resend")})})]})]})}function He({statistics:t,mode:s="simple",onResend:n=()=>{},resending:r=!1}){const a=X(()=>s==="simple"?rs(t):ls(t,n,r),[t,s]);return s==="simple"?e.jsx("div",{children:a.map(l=>e.jsx(ot,{style:{alignItems:"flex-start",marginBottom:s==="simple"?0:16},valueComponent:"div",nameWidth:100,name:l.name,children:l.value},l.name))}):e.jsx(qe,{container:!0,spacing:2,children:a.map(l=>e.jsx(qe,{size:{md:4,sm:6,xs:12},children:l.value},l.name))})}const cs=ie(y)`
|
|
31
|
-
display: flex;
|
|
32
|
-
flex-direction: column;
|
|
33
|
-
align-items: flex-start;
|
|
34
|
-
padding: 16px;
|
|
35
|
-
border-radius: 8px;
|
|
36
|
-
background: ${({successRatio:t,failedRatio:s,theme:n})=>t===0&&s===0?n.palette.grey[300]:`linear-gradient(to right, ${vt(n.palette.success.light,.4)} ${t}%, ${n.palette.grey[100]} ${t}%)`};
|
|
37
|
-
transition: 'background 0.5s ease';
|
|
38
|
-
cursor: pointer;
|
|
39
|
-
.unsent-area {
|
|
40
|
-
width: 100%;
|
|
41
|
-
position: relative;
|
|
42
|
-
.resend-btn {
|
|
43
|
-
position: absolute;
|
|
44
|
-
right: 0;
|
|
45
|
-
bottom: 0;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
`;mt.propTypes={notification:d.object.isRequired,onCancel:d.func,blocklet:d.object.isRequired,tab:d.string};function mt({notification:t,onCancel:s=()=>{},blocklet:n,tab:r="info"}){const{t:a,locale:l}=Q(),{getComponent:x,resendNotification:u}=Be(),[T,f]=g.useState(!1),v=X(()=>x(t.componentDid)||n,[n,t.componentDid]),C=De({tab:r||"info"}),F=g.useCallback(async(h,S,I=!0,w=[])=>{if(!h.length||!t.id)return;const E=S.length>0?S:t?.receivers?.map(B=>B.receiver);if(!E.length)return;let k=[...h];if(k.includes(D.NOTIFICATION_SEND_CHANNEL.PUSH)&&!dt(n)&&(q.warning(a("notification.sendStatus.reason.unavailable",{channel:"Push Kit"})),k=k.filter(B=>B!==D.NOTIFICATION_SEND_CHANNEL.PUSH)),k.includes(D.NOTIFICATION_SEND_CHANNEL.EMAIL)&&!ct(n)&&(q.warning(a("notification.sendStatus.reason.unavailable",{channel:"Email"})),k=k.filter(B=>B!==D.NOTIFICATION_SEND_CHANNEL.EMAIL)),!!k.length)try{f(!0),await u({notificationId:t.id,receivers:E,channels:k,resendFailedOnly:I,...k.includes("webhook")&&w.length?{webhookUrls:w}:{}}),q.success("Message has been sent!")}catch(B){console.error("handleResend error",{error:B}),q.error(B.response?B.response.statusText:B.message)}finally{f(!1)}},[n,t.id,t?.receivers,u,a]),_=X(()=>Ct(t),[t]),N=X(()=>Nt(t),[t]),V=X(()=>_?t?.actorInfo:[],[t]),P=X(()=>n?.did||n?.meta?.did||"",[n]);function L(){return[{name:a("notification.from"),value:_&&N?e.jsx(wt,{actors:V,teamDid:P,size:32,showName:!0}):e.jsx(Rt,{size:32,blocklet:v,showName:!0,hideDot:!0})},{name:a("notification.notificationTitle"),value:e.jsx(me,{maxLength:50,children:t.title})},{name:a("notification.body"),value:_?e.jsx(Tt,{notification:t,blocklet:n}):e.jsx(It,{notification:t,rows:0})},{name:a("notification.severity"),value:e.jsx(he,{severity:t.severity})},{name:a("notification.createdAt"),value:e.jsx(Et,{value:t.createdAt,locale:l,shouldUpdate:!0,type:"all"})}].map(S=>e.jsx(ot,{style:{alignItems:"flex-start"},valueComponent:"div",nameWidth:120,name:S.name,children:S.value},S.name))}const W={info:{label:a("common.basicInfo"),value:"info",component:L},receivers:{label:a("notification.receiver"),value:"receivers"},statistics:{label:a("notification.statistics"),value:"statistics"}},U=Object.values(W).map(({label:h,value:S})=>({label:h,value:S})),Y=W[C.tab]||W.info,Z=h=>{C.tab=h};return e.jsx(nt,{title:a("notification.notificationDetails"),fullWidth:!0,maxWidth:"lg",onClose:()=>{C.tab="info",s()},open:!0,actionsPosition:"left",sx:{".ux-dialog_header":{paddingBottom:0},".MuiDialogContent-root":{paddingTop:0}},children:e.jsxs(us,{children:[e.jsx(y,{className:"tabs",sx:{mx:3},children:e.jsx(zt,{tabs:U,current:C.tab,onChange:Z,scrollButtons:"auto"})}),e.jsxs("div",{className:"body",children:[C.tab==="receivers"&&e.jsx(is,{notificationId:t.id,resending:T,handleResend:F}),C.tab==="statistics"&&e.jsx(He,{statistics:t.statistics,mode:"detail",resending:T,onResend:F}),C.tab==="info"&&e.jsx(Y.component,{})]})]})})}const ds=g.memo(mt),us=ie.div`
|
|
49
|
-
& > .notification-row {
|
|
50
|
-
padding: 0;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.tabs {
|
|
54
|
-
margin: 0;
|
|
55
|
-
}
|
|
56
|
-
.body {
|
|
57
|
-
margin-top: 16px;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.channel-item {
|
|
61
|
-
display: flex;
|
|
62
|
-
padding: 4px;
|
|
63
|
-
justify-content: flex-start;
|
|
64
|
-
align-items: center;
|
|
65
|
-
gap: 8px;
|
|
66
|
-
> p {
|
|
67
|
-
font-size: 15px;
|
|
68
|
-
}
|
|
69
|
-
.resend-btn {
|
|
70
|
-
svg {
|
|
71
|
-
font-size: 16px;
|
|
72
|
-
}
|
|
73
|
-
display: flex;
|
|
74
|
-
align-items: center;
|
|
75
|
-
font-size: 12px;
|
|
76
|
-
cursor: pointer;
|
|
77
|
-
&.disabled {
|
|
78
|
-
cursor: not-allowed;
|
|
79
|
-
color: ${ye.text.disabled};
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
`;Ne.propTypes={blocklet:d.object,label:d.string};const ps=ie.div`
|
|
84
|
-
display: flex;
|
|
85
|
-
justify-items: flex-start;
|
|
86
|
-
align-items: center;
|
|
87
|
-
gap: 8px;
|
|
88
|
-
.name {
|
|
89
|
-
display: block;
|
|
90
|
-
max-width: 260px;
|
|
91
|
-
white-space: nowrap;
|
|
92
|
-
overflow: hidden;
|
|
93
|
-
text-overflow: ellipsis;
|
|
94
|
-
}
|
|
95
|
-
`;function Ne({blocklet:t=null,label:s=""}){return e.jsx(ps,{children:t?e.jsxs(e.Fragment,{children:[e.jsx(it,{size:24,blocklet:t,ancestors:t.ancestors}),e.jsx("span",{className:"name",children:t.title||t.meta?.title})]}):e.jsx("span",{className:"name",children:s})})}ht.propTypes={list:d.array.isRequired,label:d.string.isRequired,onDelete:d.func};function ht({list:t,label:s,onDelete:n=()=>{}}){return e.jsxs(y,{sx:{display:"flex",gap:1,alignItems:"center"},children:[e.jsxs($,{children:[s,": "]}),t.map(r=>e.jsx(Fe,{size:"small",label:e.jsx(y,{sx:{display:"flex",alignItems:"center",gap:"4px"},children:e.jsx(he,{severity:r})}),onDelete:a=>n(a,r)},r))]})}function fs(t){return e.jsx(ze,{...t,renderLabel:s=>e.jsx(he,{severity:s})})}function ms({customTableButtons:t}){const{t:s,locale:n}=Q(),r=Qe(),a=g.useMemo(()=>Je(r,ut()),[r]),[l,x]=g.useState(!1),{data:u,paging:T,blocklet:f,fetch:v,getComponent:C,componentDids:F,inService:_,teamDid:N}=Be(),V=g.useRef(null),[P,L]=g.useState(null),[W,U]=g.useState("info"),Y=Ht(),[Z,h]=g.useState(!1),S=`notification-records-${f.meta?.did}`,I=Pt(S),[w,E]=g.useState({pageSize:I.rowsPerPage||10,page:I.page?I.page+1:1,dids:I.dids||[],dateRange:I.dateRange||[H().subtract(1,"month").startOf("day").toDate(),H().endOf("day").toDate()]}),k=X(()=>{if(!f.children||!f.children.length)return[];const m=[];return f.children.forEach(p=>{const b=p.did||p.meta?.did;F.includes(b)&&(p.ancestors=[f],m.push(p))}),m},[F,f]),B=async m=>{try{x(!0),await v(m),x(!1)}finally{x(!1)}};g.useEffect(()=>{B(w)},[w]),g.useEffect(()=>{const m=u.find(p=>p.id===P?.id);P&&m&&L({...m})},[u]);const ae=(m,p,b,R)=>{m.stopPropagation();const O=b.filter(A=>A!==p);E(A=>({...A,[R]:O,page:1}))},ne=({page:m,rowsPerPage:p,filterList:b})=>{const[R=[],,,,O=[]]=b;w.pageSize!==p?E(A=>({...A,pageSize:p,page:1})):w.page!==m+1?E(A=>({...A,page:m+1})):pe(w.dids,R)?pe(w.severities,O)||E(A=>({...A,severities:O,page:1})):E(A=>({...A,dids:R,page:1}))},ee=g.useCallback(()=>{L(null),U("info")},[]),oe=g.useCallback(()=>{v(w)},[v,w]),ge=[{label:s("notification.from"),name:"sender",width:400,options:{filter:!0,filterType:"custom",customFilterListOptions:{render:m=>m.map((p,b)=>{if(p==="system")return e.jsx("span",{children:s("notification.system")},`system-${b}`);const R=k.find(O=>(O.did||O.meta?.did)===p);return e.jsx(Ne,{blocklet:R,label:R?.title||R?.meta?.title},p)}),update:(m,p,b)=>(m[b].splice(p,1),m)},filterOptions:{names:k,logic:(m,p)=>p.length?!p.includes(m):!1,display:(m,p,b,R)=>e.jsxs(Pe,{style:{width:"380px"},children:[e.jsx(Dt,{id:"demo-simple-select-label",style:{background:"#ffffff"},children:"Sender"}),e.jsxs(Ot,{multiple:!0,value:m[b],renderValue:O=>e.jsx(y,{style:{overflow:"hidden",textOverflow:"ellipsis"},sx:{display:"flex",gap:1,alignItems:"center"},children:O.map(A=>{if(A==="system")return e.jsx("span",{children:s("notification.system")},A);const J=k.find(xe=>(xe.did||xe.meta?.did)===A);return e.jsx(Ne,{blocklet:J,label:J?.title||J?.meta?.title},A)})}),onChange:O=>{m[b]=O.target.value,p(m[b],b,R)},children:[e.jsx($e,{value:"system",children:s("notification.system")}),k.map(O=>{const A=O.did||O.meta?.did;return e.jsx($e,{value:A,children:e.jsx(Ne,{blocklet:O,label:O.title||O.meta?.title})},A)})]})]})},customBodyRenderLite:m=>{const p=u[m],b=C(p.componentDid);return e.jsxs(y,{sx:{display:"flex",alignItems:"center",gap:1},children:[b?e.jsx(it,{size:32,blocklet:b,ancestors:b.ancestors??[]}):e.jsx(At,{blocklet:f,size:32}),e.jsx(me,{maxLength:50,children:b?.meta?.title||f?.meta?.title})]})}}},{label:s("notification.receiver"),name:"receivers",width:300,options:{filter:!1,customBodyRenderLite:m=>{const p=u[m],{receivers:b}=p;return e.jsx(Lt,{total:b.length,renderSurplus:R=>R<100?e.jsxs("span",{children:["+",R]}):e.jsx("span",{children:"99+"}),max:3,sx:{justifyContent:"flex-end",height:"32px",".MuiAvatar-root":{width:"32px",height:"32px",fontSize:"12px",border:0,zIndex:2}},onClick:R=>{R.stopPropagation(),L(p),U("receivers")},children:b.map(R=>{const{receiverUser:O}=R,A=st(O.avatar,N,_);return e.jsx(Ze,{alt:O.fullName,src:`${A}?imageFilter=resize&w=48&h=48`,size:32,did:R.receiver,shape:"circle",style:{borderRadius:"100%",overflow:"hidden"}},R.receiver)})})}}},{label:s("notification.statistics"),name:"statistics",width:400,options:{filter:!1,customBodyRenderLite:m=>{const p=u[m];return e.jsx(y,{onClick:b=>{b.stopPropagation(),L(p),U("statistics")},children:e.jsx(He,{statistics:p.statistics})})}}},{label:s("notification.notificationPreview"),name:"data",options:{filter:!1,customBodyRenderLite:m=>{const p=u[m];return e.jsx(me,{maxLength:50,children:p.title})}}},{label:s("notification.severity"),name:"severity",width:200,options:{setCellProps:()=>({className:"severity-cell"}),customBodyRenderLite:m=>{const p=u[m];return e.jsx(he,{severity:p.severity})},filter:!0,filterType:"custom",filterList:w.severities??[],customFilterListOptions:{render:m=>e.jsx(ht,{list:m,label:s("notification.severity"),onDelete:(p,b)=>{p.stopPropagation(),ae(p,b,ge[4].options.filterList,"severities")}}),update:Se},filterOptions:{names:Ve,fullWidth:!0,logic:ve,display:(m,p,b,R)=>e.jsx(fs,{label:s("notification.severity"),filterList:m,onChange:p,index:b,column:R,filterValues:Ve})}}},{label:s("common.createdAt"),name:"createdAt",width:300,options:{filter:!1,customBodyRenderLite:m=>{const{createdAt:p}=u[m];return e.jsx(et,{value:p,locale:n,shouldUpdate:!0})}}}],re=m=>{E(p=>({...p,dateRange:m,page:1}))},le=[e.jsxs(y,{sx:{display:"flex",alignItems:"center",gap:1.5},children:[e.jsx(kt,{onClick:()=>h(!0),sx:{p:Y?0:void 0},children:e.jsx(_t,{})},"settings"),Y?e.jsx($,{children:s("common.setting")}):null]}),...t||[]];return e.jsxs(y,{ref:V,sx:{overflow:"auto",".MuiTableCell-head":{whiteSpace:"nowrap",fontWeight:"bold"},".MuiTableCell-root":{paddingRight:"8px",whiteSpace:"nowrap"}},children:[e.jsx(hs,{children:e.jsx(tt,{theme:a,children:e.jsx(at,{className:"main-table",verticalKeyWidth:100,loading:l,locale:n,columns:ge,data:u,durable:S,onChange:ne,options:{sort:!1,download:!1,print:!1,search:!1,expandableRowsOnClick:!0,page:T.page-1,rowsPerPage:T.pageSize,count:T.total,...I,onRowClick:(m,{dataIndex:p})=>{L(u[p])}},customPreButtons:[e.jsx(We,{value:w.dateRange,onChange:re})],customButtons:le,components:{TableFilterList:m=>e.jsx(Me,{...m,itemComponent:p=>e.jsx(Ke,{...p,canDelete:b=>b?.columnNames?.[b?.index||0]?.name==="sender"})})}})})}),P&&e.jsx(ds,{refresh:oe,onCancel:ee,notification:P,blocklet:f,tab:W}),e.jsx(nt,{title:`${s("common.notification")} ${s("common.setting")}`,fullWidth:!0,maxWidth:"md",open:Z,onClose:()=>h(!1),PaperProps:{style:{minHeight:"500px"}},children:e.jsx(y,{sx:{mt:"-16px",overflowY:"hidden"},children:e.jsx(Bt,{})})})]})}const hs=ie.div`
|
|
96
|
-
td.MuiTableCell-footer {
|
|
97
|
-
border: none !important;
|
|
98
|
-
}
|
|
99
|
-
.sent-status-cell {
|
|
100
|
-
.resend-btn {
|
|
101
|
-
display: none;
|
|
102
|
-
}
|
|
103
|
-
&:hover {
|
|
104
|
-
.resend-btn {
|
|
105
|
-
display: flex;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.custom-toobar-btns {
|
|
111
|
-
gap: 4px;
|
|
112
|
-
}
|
|
113
|
-
`;gs.propTypes={blocklet:d.object.isRequired,customTableButtons:d.array};function gs({blocklet:t={},customTableButtons:s=[]}){return e.jsx(Vt,{blocklet:t,children:e.jsx(ms,{customTableButtons:s})})}export{gs as default};
|